Quick css question

Associate
Joined
25 Jul 2005
Posts
430
Hi guys, im trying to learn css but am having a few problems. Im trying to get the text on the left of the page to align left, but it refuses to move from the centre, can anyone see what im doing wrong?
http://four.fsphost.com/st00dent/test.html

Heres the css

/* CSS Document */
#container {
position:absolute;
top: 15%;
width:100%;
margin:0px;
border:1px solid gray
}

#left {
float:left;
border-right:1px solid gray
}

#main {
margin-left: 20%;
border-right:1px solid gray
}

ul.navgation {
list-style-type: none;
text-align: left
}
 
Beansprout said:
It is - <ul> just has a default margin :)

Add the following to the top of the CSS to remove all the default margins/padding which will simplify learning imo:)

* {
margin: 0;
padding: 0;
}
[/code]
So what you write will be closer to what you actualy see as browsers won't show their default margin/paddings :)

Thanks, is this seen as bad practice in anyway? I will be assessed on this you see:)
 
Back
Top Bottom