HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

how to align website very top and flush left with a browser?
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
jessica987



Joined: 07 Sep 2008
Posts: 5

Posted: Sun Sep 07, 2008 8:40 pm     how to align website very top and flush left with a browser?  

Hi,

I tried the body code of:

Code:
<body leftmargin="0" topmargin="0" marginleft="0" margintop="0">


however its still not putting the content of the website in the very top and left of the page. please help, here is the page in question: http://www.jessicahope.com/3fixedtotal.html I am thinking all the CSS is screwing up the html code? But then how do I go about using the current CSS (its the template I want/need) but also getting the content of the page to align top and left?

Thanks in advance.
sticks464



Joined: 31 Dec 2006
Posts: 1283

Posted: Sun Sep 07, 2008 9:37 pm      

Put this as the very first css entry
Code: * {
margin:0;
padding:0
}
This sets all browser margin and padding defaults to zero. If this messes up the rest of the site then use
Code: body {
margin:0;
padding:0;
}
I get a 404 URL not found from your link
jessica987



Joined: 07 Sep 2008
Posts: 5

Posted: Sun Sep 07, 2008 9:46 pm      

i fixed the link url, it works now.

and i tried both of those code changes (as the first css style) and that still didnt align the columns top left.

hrm...
jessica987



Joined: 07 Sep 2008
Posts: 5

Posted: Sun Sep 07, 2008 9:48 pm      

i got it now! i noticed the tag below was "auto" and so i took that out and added padding: 0 and it works now!

thank you very very much ;)
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> CSS
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group