1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Css layout is driving me crazy!

Discussion in 'CSS' started by Homeboy, Aug 4, 2005.

  1. #1
    Hello,

    For some reason my css is not working right today. I have just a bunch of little errors on my site that i just started today. I don't know why. So can you guys please bare with me and help me solve these issues out?

    Okay i am going to just list the problems and i will number them. So if you find the answer can you please have the number for the answer with it.

    1) I need to center the site but it won't center for some reason. How can i fix that?

    2) I am trying to have padding in my content area but it won't go to what i set it to. I would llike .5em padding?

    3) The height of the site: I don't know the extact height and I want it to go as long as what ever the content that i put and possibly have a bottom padding to it, How do i do that?

    4) Then when you go to internet explorer on the pc my content it is not right next to the navigation. I want content on the left and the side navigation to the left. I got the side navigation right but not the content?

    5) I have a gap on the of the main navigation up on top of the entier website. I don't know why i have that. Do you?

    Website url http://abkdesign.com/sdyouth/index.html

    Thanks you for your time
     
    Homeboy, Aug 4, 2005 IP
  2. hmilesjr

    hmilesjr Active Member

    Messages:
    747
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I am getting a 404 error when loading your URL
     
    hmilesjr, Aug 4, 2005 IP
  3. Homeboy

    Homeboy Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry;
    Some one helped me solved all of the problems and i went to upload it again,

    I have one more question:

    For a h1 header tag i like to have border bottom of a solid and a dotted. I want it to start where the first letter starts. How can i acheive that?

    Thanks

    Website url http://abkdesign.com/sdyouth/index.html

    Thanks you for your time
     
    Homeboy, Aug 4, 2005 IP
  4. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #4
    solid and dotted means two underlines, which means you'll have to wrap your h1 with another tag. to achieve it.

    something along the lines of:
    
    .h1{
    text-decoration: underline;
    }
    .wrapper{
    border-bottom: 1px dotted black;
    }
    <div class="wrapper"><h1>header text</h1></div>
    
    
    PHP:
     
    nevetS, Aug 4, 2005 IP
  5. Homeboy

    Homeboy Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It works but it is not below it with 1px of space.

    How can i fix that?
     
    Homeboy, Aug 4, 2005 IP
  6. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Although suffering from 'spanitis' this would do the trick.
     
    .ulsolid {
     border-bottom:1px solid #000;
     margin-bottom:1px;
    }
    .uldotted {
     border-bottom:1px dotted #000;
    }
     
    <h1><span class="uldotted"><span class="ulsolid">My Header Text</span></span></h1>
    
    Code (markup):
     
    Arnica, Aug 5, 2005 IP