ok why is my css doing this

linkzerone

Well-Known Member
OP
Newcomer
Joined
Oct 24, 2016
Messages
47
Trophies
0
Age
26
XP
97
Country
Canada
im trying to make a responsive website but there is a gap in one space i cant figure out how to get rid of it please help

<!DOCTYPE html>
<html>
<head>
<title></title>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="css/main.css">

</head>

<body>

<header>
</header>

<nav></nav>

<main class="row">
<div id="scondaryNav" class="col-md-2"></div>

<div class="col-md-8">
<div class="container">
<div class="row">
<h2>Our Mission Statement</h2>
<p>The Cedar Crest Society exists to ensure that members of our community acquire full citizenship; including the rights, obligations and privileges attainable by all citizens.</p>
</div>
</div>
</div>

</main>

<footer>
</footer>

</body>
</html>


*{box-sizing:border-box; margin:0; padding:0}
body{background:orange}

.container{padding:0 15px; margin:0 auto}
.row::after { content: ""; clear: both; display: block}

/*mobile first*/

/*start of header element*/
header{height:60px; background:blue}
/*end of header element*/

/*start of navigation element*/
nav{height:60px; background:yellow}

/*start of scondary Navigation*/
#scondaryNav.col-md-2{background:#c000ff; height:100vh; position:relative;
bottom:60px;}
/*start of scondary Navigation*/

/*end of navigation element*/

/*start of main element*/
/*end of main element*/

/*start of footer element*/
footer{height:60px; background:black}
/*end of footer element*/

/*mobile phones and other small devices*/
[class*="col-"] { float: left; padding: 15px; width: 100%}

/*media Queries*/

/*small screens*/

@media (min-width: 768px) {
.container {width: 750px}

/*resume page*/
header main h4{float:left; position:relative; left:27%;}

/*main colum set small screens*/
.col-sm-1 {width: 8.33%;}
.col-sm-2 {width: 16.66%;}
.col-sm-3 {width: 25%;}
.col-sm-4 {width: 33.33%;}
.col-sm-5 {width: 41.66%;}
.col-sm-6 {width: 50%;}
.col-sm-7 {width: 58.33%;}
.col-sm-8 {width: 66.66%;}
.col-sm-9 {width: 75%;}
.col-sm-10 {width: 83.33%;}
.col-sm-11 {width: 91.66%;}
.col-sm-12 {width: 100%;}
}

@media (min-width: 992px) {
.container {width: 970px;}

/*resume page*/
header main h4{float:left; position:relative; left:35%;}

/*main colum set medium screens*/
.col-md-1 {width: 8.33%;}
.col-md-2 {width: 16.66%;}
.col-md-3 {width: 25%;}
.col-md-4 {width: 33.33%;}
.col-md-5 {width: 41.66%;}
.col-md-6 {width: 50%;}
.col-md-7 {width: 58.33%;}
.col-md-8 {width: 66.66%;}
.col-md-9 {width: 75%;}
.col-md-10 {width: 83.33%;}
.col-md-11 {width: 91.66%;}
.col-md-12 {width: 100%;}
}

@media (min-width: 1200px) {
}
 

linkzerone

Well-Known Member
OP
Newcomer
Joined
Oct 24, 2016
Messages
47
Trophies
0
Age
26
XP
97
Country
Canada
ok i just used margin -60 0 instead of position: relitive and bottom 60 on ##scondaryNav.col-md-2 then gave the footer
margin-top:60px; padding:35px; padding-bottom:30px;
background:#222; border-top:0; text-align: center;
so far its working
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
  • BakerMan @ BakerMan:
    Also, no, that was his first time having a seizure, and hopefully the last
    +1
  • K3Nv2 @ K3Nv2:
    Ea play raised priced to $6 a month lol
  • BigOnYa @ BigOnYa:
    Same with uremum, she's now $2 a month
    +1
  • K3Nv2 @ K3Nv2:
    Also seizures come and and go they don't have an off switch like that it all depends
  • BakerMan @ BakerMan:
    alright guys, who would win, sonic or goku?
  • BigOnYa @ BigOnYa:
    Knuckles
  • BakerMan @ BakerMan:
    knuckles vs broly could also be a good one tbh
    +1
  • BigOnYa @ BigOnYa:
    Bakerman vs. Wario
  • BigOnYa @ BigOnYa:
    Announcer - "Ok folks we have a good fight today, Bakerman takes on Wario. This should be a good fight. Wait...why is bakerman undressing?"
  • BakerMan @ BakerMan:
    Oh sorry, this is Wario? I thought it was your wife
    +1
  • E @ eenterx:
    hello guys how do i type on forums?
  • E @ eenterx:
    i am the new user
    +1
  • BigOnYa @ BigOnYa:
    I am the Eggman... I am the Walrus...
    +1
  • E @ eenterx:
    oh ok
  • RedColoredStars @ RedColoredStars:
    What does it tell you when you try to type?
  • BakerMan @ BakerMan:
    @BigOnYa speaking of eggmen... eggman for smash
  • RedColoredStars @ RedColoredStars:
    You click where it says "Write your reply..." and start typing? lol
    +1
    RedColoredStars @ RedColoredStars: https://suckmybeatles.com/