• Resolved baszer

    (@baszer)


    Hi,

    i am making an own theme. I want to style my blog-title. In GC and FF is it working perfect. But i can’t get it styeld in IE. What do i do wrong.

    This is the code:
    <h1 id="blog-title"><a href="<?php bloginfo('home') ?>/" title="<?php echo wp_specialchars( get_bloginfo('name'), 1 ) ?>" rel="home"><?php bloginfo('name') ?></a></h1>

    This is the css:

    #blog-title, #blog-title A
    {
    	padding: 25px 0px 0px 5px;
    	text-transform: uppercase;
    	font-family: Calibri, Verdana;
    	color: #FFFFFF;
    	text-decoration: none;
    	font-weight: bold;
    	font-size: 27pt;
    }

    It’s so weird.

    I hope someone knows the solution

    With regards,
    Bas

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

    Thread Starter baszer

    (@baszer)

    aah, stupid!

    here a visible picture of my problem. Very strange.

    Try using:

    #blog-title, #blog-title a {
        padding: 25px 0px 0px 5px;
        text-transform: uppercase;
        font-family: Calibri, Verdana;
        color: #FFFFFF;
        text-decoration: none;
        font-weight: bold;
        font-size: 27pt;
    }

    Plus you have a few markup and CSS errors that need sorting.

    Thread Starter baszer

    (@baszer)

    thank you for you reply.

    But your above solution is not the answer. I looked at the markup errors and the first error is this:

    Line 30, Column 1: unclosed start-tag requires SHORTTAG YES
    <h1 id=”blog-title”><a href=”https://www.ruunerwold.nl/bas/vissen/&#8221; title=”a new…
    ?
    The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.

    maybe this is the answer, but i don’t know what they mean. Can u maybe explain this to me?

    thank you in advance

    -edit- I looked at the html and i made a class in stead of an id for the h1. I also added an a:visited. Now i have the right color and font size. Put i can’t get it padded right. (see the picture of how IE 8 thinks the divs are)

    Thread Starter baszer

    (@baszer)

    YES I GOT IT!!!

    i forgot a > a rule before the <h1 tag!

    thanks for you help

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Style Blog-title in IE’ is closed to new replies.