View Full Version : Little help?:D
Bojangles
03-03-2008, 12:05 PM
Hey if I wanted to align a header right at the top of the page. Just under the url bar what would be the code in CSS or HTML - If any?
I've tried <div align="top"><div id="header"></div> But for some reason it leave a gap at the top of the page. :S Help? +REP to anyone who helps :)
Hey if I wanted to align a header right at the top of the page. Just under the url bar what would be the code in CSS or HTML - If any?
I've tried <div align="top"><div id="header"></div> But for some reason it leave a gap at the top of the page. :S Help? +REP to anyone who helps :)
It you want a right aligned header it would need to be
<div align="right" id="header" style="margin: 0px;"></div>
you add margin-top: 0px; into the body tag
Bojangles
03-03-2008, 06:06 PM
Lmao I'm so dumb +REP to both if I can :D
Danny$
03-03-2008, 06:07 PM
lol n00b
lol n00b
you have to start at some time and learning basics is necessary
Bojangles
03-03-2008, 06:11 PM
How am I a noob? I'm learning. -Rep to you :)
Just add
body, html {
margin: 0 0 0 0;
padding: 0 0 0 0;
}
If you want to make everything touch the edges. :)
Margin/Padding/Border needs to be set to zero so it's as close to the edge as possible, this should logicly make it so it's touching the edge.
Hope I helped.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.