CSS not affecting document properly, please help!

This is a discussion on "CSS not affecting document properly, please help!" within the Web Page Design section. This forum, and the thread "CSS not affecting document properly, please help! are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 25th, 2005, 19:37
New Member
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
CSS not affecting document properly, please help!

Hi, I have css affecting

and <hr>'s in my webpage document. It works correctly in one of my <div>'s, but not in another one. Any one have any ideas why?

Here's my code:

the css titled # content p and # content hr is my problem. It works in <div id="content">, but does not work in <div id="bottom"> my text is supposed to be padded 15px, and my <hr> is only supposed to be 480px, but they are not responding to this css.

Any ideas?

Thanks!

Code here:-
http://pastebin.webforumz.com//view.php?id=23

[edited by rob : Excessive code paste]
Reply With Quote

  #2 (permalink)  
Old Jul 25th, 2005, 19:42
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Hi Nate....

Firstly welcome to the forums....

I edited your above post (not your fault.... just a new feature we're introducing to combat really long chunks of pasted code)

I'll look into your issue.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #3 (permalink)  
Old Jul 25th, 2005, 19:44
New Member
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks!

Thanks Rob!

Sorry for the huge code paste!
Reply With Quote
  #4 (permalink)  
Old Jul 25th, 2005, 19:54
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
try setting #content and #bottom position to relative.....

postition:relative;

Not sure if this will help.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #5 (permalink)  
Old Jul 25th, 2005, 20:00
New Member
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
They already are set as relative........

any other ideas?

Thanks!
Reply With Quote
  #6 (permalink)  
Old Jul 25th, 2005, 20:04
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
firstly, can you try targeting the HR element directly with an ID?

Also, do you have a url for me to see this working?
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #7 (permalink)  
Old Jul 25th, 2005, 21:31
New Member
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, here's the url:

http://www.powerxchange.com/extensio...05/072905.html


Thanks!
Reply With Quote
  #8 (permalink)  
Old Jul 25th, 2005, 22:13
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
You haven't told it what to do with a HR or text inside a #bottom e.g.

instead of:
Code: Select all
#content p { 
padding-left: 15px;
padding-right: 15px;
padding-top: 0px;
padding-bottom: 15px;			
}

#content hr { width: 480px }
use:
Code: Select all
#content p, #bottom p {
padding: 0 15px 15px 15px;
}

#content hr, #bottom hr { width: 480px }
as I have done here: http://pastebin.webforumz.com//view.php?id=25
Reply With Quote
  #9 (permalink)  
Old Jul 25th, 2005, 22:21
New Member
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
It's always the obvious!

Right in front of my nose! Thanks a million. I was sitting there staring right at it.

Cheers!
Reply With Quote
  #10 (permalink)  
Old Jul 25th, 2005, 22:23
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
no probs!
Reply With Quote
Reply

Tags
css, affecting, document, properly, help

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CSS role over affecting HREF, links Joolsd186 Web Page Design 10 Jan 9th, 2008 00:26
[SOLVED] CSS wrapper affecting body Joolsd186 Web Page Design 7 Dec 31st, 2007 19:11
Background Opacity without affecting Text ChrisTheSoul Web Page Design 11 Aug 31st, 2007 14:11
document.getElementById and document.getElementByName is not working in FF dhineraj JavaScript Forum 3 Jul 26th, 2007 20:23
Can't add a div box properly to my page. Moonlilly Starting Out 1 Feb 26th, 2007 20:38


All times are GMT. The time now is 21:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43