473,385 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem assigning style to the h2 tag in this block:

For some reason the text in h2 tag is displaying as white in IE. Any
suggestions?

http://www.salperalta.com/

<td class="sidebar" id="sidebar-right">
<div class="block block-listing" id="block-listing-0">
<h2>Easy MLS Search for Oregon and Southwest Washington:</h2>
<div class="content">
</div>
</div>
</td>

..sidebar .block h2 {
padding: 3px 0 0 0;
margin: 0;
margin-left: 3px;
font-size: 12px;
color: black;
}

h2 { font-size: 15px; color: black;}
..sidebar .block block-listing h2 {
padding: 3px 0 0 0;
margin: 0;
margin-left: 3px;
font-size: 12px;
color: black;
}

h2 { font-size: 15px; color: black;}
body {
color: #000000;
background: #ffffff;
font-family: Verdana, Helvetica, Arial, Lucida, sans-serif;
padding: 0;
margin: 0;
}

Jan 29 '07 #1
1 1731
Scripsit sp******@progressivetrail.org:
For some reason the text in h2 tag is displaying as white in IE. Any
suggestions?

http://www.salperalta.com/
The h2 text is indeed in white (but it's there, as one can see by selecting
it with the mouse) - on IE 6. On IE 7, it's black. This is odd, since all
declarations that set color for h2 in any context seem to set it black. But
I didn't check for declarations involving the universal selector *.

The page is fairly complex, with three external stylesheets and several
external JavaScript files (though disabling JavaScript on IE 6 does not seem
to affect the problem).

Finding out the source of the problem might thus be difficult to find. But
shouldn't you start from validating the markup, then proceed to using a
checker on the CSS code? There seems to be a considerable number of markup
errors. You should also make a choice between HTML 4.01 and XHTML instead of
mixing the two in the same document. (The expert advice is to use HTML 4.01,
but you can of course use technobabble-XHTML _if_ you are careful enough to
follow guidelines that effectively make it HTML 4.01 with pointless
kludges.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jan 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: nick | last post by:
In the web site http://greywolfdesign.com , there is a pop-up menu (when mouse over 'Portfolio' menu item), it always works well when using IE (6). However, when using Mozilla 1.6, the popup...
6
by: mike | last post by:
I have a page that uses a some javascript and it works fine in IE but fails to work in Firefox. Basically what I'm trying to do is have 3 iframes on a page but only displaying one of them at a...
3
by: shreddie | last post by:
Could anyone assist with the following problem? I'm using JavaScript to hide/show table rows depending on the option selected in radio buttons. The script works fine in IE but in Firefox the...
3
by: kec | last post by:
I want to create a script that prevent users of my form for typeing stupid things. Here is my script: <script language="JavaScript" type="text/JavaScript"> <!-- function provjera(s1, s2, s3, s4)...
1
by: books1999 | last post by:
Hi there, I have a problem with this css/div and i cannot work it out. I would like either container to be able to push the background box to grow but in Firefox it overflows. Can someone find a...
29
by: Richard Lionheart | last post by:
Hi All, I've taken the advice of a few people and managed to cobble together an HTML 4.01 Strict-compliant document (according to the W3C Validation Service), but the way I try to pass a...
1
by: speralta | last post by:
For some reason the text in h2 tag is displaying as white in IE. http://www.salperalta.com/ <td class="sidebar" id="sidebar-right"> <div class="block block-listing" id="block-listing-0">...
15
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out,...
2
by: stevemtno | last post by:
I've got a problem with a web page I'm working on. I have 4 modules - one of them has 2 tabs, two of them have 4 tabs. When the user clicks on the tabs, the content below them changes. However, when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.