Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do I call something from the CSS stylesheet in Internet Explorer?
I've defined this block in my stylesheet:
#featured z3, z3 a, z3 a:visited {
margin: 0px 0px 10px 0px;
padding: 0px;
font-family: Geneva, Arial;
font-size: 31px;
line-height: 35px;
font-weight: normal;
color: #cc0000;
letter-spacing: -1px;
text-decoration: none;
}
When I put <z3> Big Red Headline </z3> it works perfectly in Chrome and Firefox, but it doesn't work in Internet Explorer. How do I fix this?
The HTML where I try to implement this is:
<?php get_header(); ?>
<div id="content" class="container">
<div id="front" class="column_main">
<div id="featured"> <!-- The 1st post, with the black background by default -->
<?php query_posts('showposts=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><?php the_category(', '); ?><i> - <?php the_time('l, F j, Y G:i'); ?> </i></h2>
<z3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></z3><br>
4 Answers
- 1 decade agoFavorite Answer
To combine the previous answers, and perhaps make things a bit clearer, there is no z3 tag in HTML. It may be that some browsers will still identify this as a tag, and be able to apply styles to it, but you really can't expect something that to work reliably.
It looks like what you're trying to achieve is another level of headings, in which case you should use <h3>, or alternatively, you could, as noted, use a <p> or some other "real" tag with a class or ID.
- 1 decade ago
When defining your classes with dots in the stylesheet you can try something like <p class="z3">My big headline</p>. Else if you are defining with # then try something like <p id="z3">My big headline</p>
- Anonymous1 decade ago
Learn how to use CSS and to link to it for all browsers...
CSS Tutorials:
http://www.w3schools.com/Css/default.asp
http://www.echoecho.com/css.htm
http://www.html.net/tutorials/css/
http://www.w3.org/Style/Examples/011/firstcss
http://htmldog.com/guides/cssbeginner/
http://www.htmlcodetutorial.com/character_famsupp_...
Tableless Web Design: http://en.wikipedia.org/wiki/Tableless_web_design
How to convert manually your HTML tables to CSS: http://www.table2css.com/articles/convert-your-htm...
Images, Tables, and Mysterious Gaps: https://developer.mozilla.org/en/Images,_Tables,_a...
Ron
- 1 decade ago
HTML doesn't allow you to define tags. What you tried to do there is simply not supposed to work.