Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-08-2006, 06:11 PM   PM User | #1
qthenoo
New Coder

 
Join Date: Apr 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
qthenoo is an unknown quantity at this point
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
qthenoo is offline   Reply With Quote
Old 05-09-2006, 02:18 AM   PM User | #2
BonRouge
Regular Coder

 
BonRouge's Avatar
 
Join Date: Mar 2006
Location: Sendai, Japan
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
BonRouge is on a distinguished road
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)
__________________
bonrouge
BonRouge is offline   Reply With Quote
Old 05-09-2006, 12:42 PM   PM User | #3
qthenoo
New Coder

 
Join Date: Apr 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
qthenoo is an unknown quantity at this point
Thanks for the reply. Should i make them a class instead do you think?

cheers
qthenoo is offline   Reply With Quote
Old 05-09-2006, 01:14 PM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,601
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:48 PM.


Advertisement
Log in to turn off these ads.