PDA

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 :)

Pawf
03-03-2008, 06:04 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 :)


It you want a right aligned header it would need to be


<div align="right" id="header" style="margin: 0px;"></div>

kk.
03-03-2008, 06:05 PM
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

kk.
03-03-2008, 06:08 PM
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 :)

L?KE
04-03-2008, 07:26 PM
Just add
body, html {
margin: 0 0 0 0;
padding: 0 0 0 0;
}

If you want to make everything touch the edges. :)

Buax
04-03-2008, 10:29 PM
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!