PDA

View Full Version : CSS Headache


IceLion
10-19-04, 23:11
So I'm trying for the first time to do a "liquid" layout, one with no tables, all css. It's been a while since I've attempted to design a site so I've forgotten what I forgot I knew.

Anyone here that can remind me how to kill the space that appears at the top when your coding, in other words, I want my content div to go all the way from top to bottom. Here is the css for the div class:

.content {
position: relative;
float: left;
width: 60%;
left-margin: 1%;
background-color: #FFFFFF;
padding: 3px;
margin-top: 0px;
top: 0px;

I using a solid bg color too... any help would be awesome!

-Lion

Kodo
10-20-04, 10:53
you have your padding set to 3px. that goes all the way around what you want to do is

Padding:0px 3px 3px 3px;

Going clockwise top=0 right=3 bottom=3 and left=3

follow?