Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-06-2011, 06:14 PM   PM User | #1
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
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.
sixrfan is offline   Reply With Quote
Old 07-06-2011, 07:42 PM   PM User | #2
xFinaLx
New Coder

 
Join Date: May 2011
Posts: 79
Thanks: 3
Thanked 4 Times in 4 Posts
xFinaLx is an unknown quantity at this point
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.
xFinaLx is offline   Reply With Quote
Old 07-06-2011, 08:31 PM   PM User | #3
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
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
teedoff is offline   Reply With Quote
Old 07-06-2011, 08:55 PM   PM User | #4
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
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
alykins is offline   Reply With Quote
Old 07-06-2011, 09:05 PM   PM User | #5
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
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.
sixrfan is offline   Reply With Quote
Old 07-06-2011, 10:23 PM   PM User | #6
kwdamp
New Coder

 
Join Date: Jun 2011
Posts: 41
Thanks: 0
Thanked 2 Times in 2 Posts
kwdamp is an unknown quantity at this point
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
kwdamp is offline   Reply With Quote
Old 07-07-2011, 02:01 AM   PM User | #7
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
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!
sixrfan is offline   Reply With Quote
Old 07-07-2011, 09:19 PM   PM User | #8
kwdamp
New Coder

 
Join Date: Jun 2011
Posts: 41
Thanks: 0
Thanked 2 Times in 2 Posts
kwdamp is an unknown quantity at this point
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?
kwdamp is offline   Reply With Quote
Old 07-07-2011, 11:23 PM   PM User | #9
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
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
alykins is offline   Reply With Quote
Old 07-08-2011, 06:05 PM   PM User | #10
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
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!
sixrfan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:02 PM.


Advertisement
Log in to turn off these ads.