HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
how to align website very top and flush left with a browser?
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
jessica987



Joined: 07 Sep 2008
Posts: 5

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

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.


Last edited by jessica987 on Sun Sep 07, 2008 9:45 pm; edited 1 time in total
sticks464



Joined: 31 Dec 2006
Posts: 1173

PostPosted: Sun Sep 07, 2008 9:37 pm     Reply with quote

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

PostPosted: Sun Sep 07, 2008 9:46 pm     Reply with quote

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

PostPosted: Sun Sep 07, 2008 9:48 pm     Reply with quote

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 Wink
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial