CSS Headache

Discussion in 'Software' started by IceLion, Oct 20, 2004.

  1. IceLion

    IceLion Private E-2

    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
     
  2. Kodo

    Kodo SNATCHSQUATCH

    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?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds