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.

Div can't hold links

Discussion in 'CSS' started by tarponkeith, Aug 8, 2007.

  1. #1
    I'm trying to get into this whole "CSS" thing... Just as I think I've got it, something happens...

    I've attached a snapshot of a project I'm working on... For some reason, the links are popping out of the bottom of the DIV container... I'll upload the code in a second...

    Thanks in advance for any help...
     

    Attached Files:

    tarponkeith, Aug 8, 2007 IP
  2. cbn81

    cbn81 Peon

    Messages:
    160
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you should post some css code when you ask for help about css!
     
    cbn81, Aug 8, 2007 IP
  3. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #3
    tarponkeith, Aug 8, 2007 IP
  4. cbn81

    cbn81 Peon

    Messages:
    160
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't think you need
    float: left;

    and

    position: relative;

    in A.SubCatLink

    Try removing them and see what happens
     
    cbn81, Aug 8, 2007 IP
    tarponkeith likes this.
  5. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #5
    Hey, it worked! Thanks!

    I thought you needed the "float: left;" whenever you wanted something to be to the right of it, but it looks like you don't.... Thanks!
     
    tarponkeith, Aug 8, 2007 IP
  6. cbn81

    cbn81 Peon

    Messages:
    160
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    you're welcome!

    PS: I also started with css with a hands-on approach, but you should read some guide, at least to understand the basics of css!
    Gogg luck for your work!
     
    cbn81, Aug 8, 2007 IP