There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: CSS Problem


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
pcpro17's Avatar
Senior Member with 233 posts.
 
Join Date: Oct 2006
Location: Wisconsin, USA
Experience: Advanced
01-May-2007, 02:45 PM #1
Exclamation Solved: CSS Problem
Hello. Something (I can't figure out what) is causing text in my webpage tagged with <p> to appear as the wrong color. I think something in my CSS sheet is overriding it, but I can't figure out what. I'd like the text tagged with <p> to be the same color as the text tagged with <blockquote>.

The page can be viewed here:
http://www.correctnesscommentary.com/index2.php

The CSS file can be viewed here:
http://www.correctnesscommentary.com/journal.css

Any thoughts/ideas would be greatly appreciated.
face1's Avatar
Senior Member with 181 posts.
 
Join Date: Sep 2005
Experience: Intermediate
01-May-2007, 08:06 PM #2
CSS in not really my area, but an educated guess would be this...
In your stylesheet, you have specified a color for H2 in addition to global setting on line 14(which happens to match the offending color in your bad tags) ...maybe this is being inherited for those tags that follow it? Try removing this attribute and see what happens. The tags following the H1 tags seem to be O.K. and H1 has no color specified other than the one in the global setting on line 14.
pcpro17's Avatar
Senior Member with 233 posts.
 
Join Date: Oct 2006
Location: Wisconsin, USA
Experience: Advanced
01-May-2007, 10:06 PM #3
Thank you for the suggestion. However, I highly doubt this is the problem. The way CSS works is the style defined last takes presidence, hence the "cascading" part of Cascading Style Sheets. Plus, the problem existed prior to today, when I added that global setting on line 14. Thanks again! ^_^
pcpro17's Avatar
Senior Member with 233 posts.
 
Join Date: Oct 2006
Location: Wisconsin, USA
Experience: Advanced
02-May-2007, 04:03 PM #4
The problem is now solved. It turned out that since the tag was with division that was defined by using a class, the style definitions for it were overridden by the class. By adding the color attribute to the class, the problem was solved.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:50 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.