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
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...