Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    407
    Thanks
    119
    Thanked 0 Times in 0 Posts

    IE8 not showing heading

    how come the
    Code:
    h2 class="featured title"
    that shows above the central image ("Event Planning and Design") does not show in IE8, though it shows in Chrome and Firefox?

    pleasd advise. thanks in advance.

  • #2
    New Coder
    Join Date
    May 2011
    Posts
    79
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Can you post a link to your site or the complete code? Not much we can tell from that one line.
    Quote Originally Posted by bullant View Post
    Basically - Java is to Javascript as Ham is to Hampster.

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    and I should hope that the code is actually

    <h2 class="featuredTitle"></h2>

    not sure about spaces in class and id names. May work but to me its bad practice to name anything that way.
    Teed

  • #4
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,758
    Thanks
    41
    Thanked 191 Times in 190 Posts
    Quote Originally Posted by teedoff View Post
    and I should hope that the code is actually

    <h2 class="featuredTitle"></h2>

    not sure about spaces in class and id names. May work but to me its bad practice to name anything that way.
    i didn't even notice that... i'm pretty sure it throws validation errors (spaces in naming)...

    so in the middle of typing this i threw a simple line of CSS through the validator, and it validate with the space; but I'm not to sure how it is getting targeted now, bc you have to have .featured title{margin:0px;} but now that is targeting all "title" s specified by featured... im getting confused... i don't think it works (like 99% sure)

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #5
    Regular Coder
    Join Date
    Aug 2009
    Posts
    407
    Thanks
    119
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by xFinaLx View Post
    Can you post a link to your site or the complete code? Not much we can tell from that one line.

    here's the code that has the featured-title on line 47: http://pastebin.com/BfUqt4VR

    please advise. thank you.

  • #6
    New Coder
    Join Date
    Jun 2011
    Posts
    46
    Thanks
    1
    Thanked 2 Times in 2 Posts
    It's hard to tell what is causing the problem without seeing the full code. You do know that <?php the_title(); ?> is a subroutine that has to be defined somewhere. Right? I didn't see it in anything you posted.

    Also, we can't see your CSS code from what you posted either. So there's no way for us to know if the h2 tag is defined properly or not.

    I think you would be better served to give us the url of the actual page, or copy and paste the source AFTER the php processing has been done and yielded the resulting html.
    Last edited by kwdamp; 07-06-2011 at 10:25 PM. Reason: Addition

  • #7
    Regular Coder
    Join Date
    Aug 2009
    Posts
    407
    Thanks
    119
    Thanked 0 Times in 0 Posts
    oh crap. i totally forgot to post the link to the site. i thought I did. sorry. wasnt trying to make things difficult. just spaced.

    here it is.

    please advise. thanks!

  • #8
    New Coder
    Join Date
    Jun 2011
    Posts
    46
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Wow, you have a LOT of code there. I counted over 1,000 lines of CSS between the 4 pages that your site references.

    When you make things that complicated, it's very, very hard for others to give you insight.

    One thing I couldn't figure out though, is the parent div of that H2 class is listed as <div class="slide active-block">. I couldn't find that defined anywhere in your css. Is that perhaps a mistake (mis-titled) or was it possibly left out by accident?

  • #9
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,758
    Thanks
    41
    Thanked 191 Times in 190 Posts
    i feel like such a dumb a* for not thinking of this earlier... first you call your class featured-title. (or i am gathering this based on checking things)... also as to the "spacing"... that is how you call multiple classes for one object... so if i have five classes (each named one, two, three, etc) if you want to apply classes .one, .two, and .four, you would call class="one two four"... so in regards to OP problem you are trying to apply classes .featured and .title .... if you named it something else you are never calling the styling

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #10
    Regular Coder
    Join Date
    Aug 2009
    Posts
    407
    Thanks
    119
    Thanked 0 Times in 0 Posts
    yeah, i realize now that there's a ton of code in here. This is a wordpress template that I installed and apparently its really weighted down in code so I'm just dealing with the repercussions at this point.

    I was able to get the heading to work with the following:
    Code:
    .active-block .featured-title {display:block !important; font-size:26px; bottom:auto; top:0; color:#803e3f; background:none; text-shadow:none;}
    i think the issue was that previously I had a top:-20px in there and it was dissapearing above the surrounding div in IE. so the title is showing up now...

    however, the heading now looks like its very low resolution. why is that? does IE not recognize the font type? if so, why wouldnt IE just default to some generic font and have it look good??? how can i fix?

    please advise. thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •