Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dynamic content display problem

    http://www.thegatecic.co.uk/html/case.php

    Hey

    This page is loading in dynamic content through a cms sytem and as you can see is piling up on top of one another. Can any one tell if this is something that can be resolved through css or should it be the cms guy who sorts this?

    Any help much appreciated

    chris

  • #2
    Regular Coder BonRouge's Avatar
    Join Date
    Mar 2006
    Location
    Sendai, Japan
    Posts
    328
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you remove these lines from the CSS...
    Code:
    #content p{
    margin: 0px;
    padding: 0px;
    position: absolute;
    text-align: left;
    font-size: 12px;
    color: #ff0000;
    width: 600px;
    top: 300px;
    }
    #content #pic{
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 90px;
    left: 0px;
    width: 600px;
    }
    ... your content becomes readable. However, you have 3 divs with the same ID - 'pic'. That's not good. (http://bonrouge.com/br.php?page=faq#class-id)

  • #3
    New Coder
    Join Date
    Apr 2006
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply. Should i make them a class instead do you think?

    cheers

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,622
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Yes, that's what he was implying. And that's what the page behind the link is telling you.

    If you have more than one element you want to apply the same CSS to (be it written by you or generated by a server side script) you have to use classes. IDs are just for one single element on one page.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •