Welcome to WebmasterWorld Guest from 54.161.95.0

Forum Moderators: not2easy

Message Too Old, No Replies

css ok in firefox, not in ie

php in css ok in firefox, not ie

     
2:09 pm on Feb 18, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 9, 2006
posts: 177
votes: 0


I have entered the correct line in my ht access file to access php in my css file. All other code works correctly except for the code below. It looks correct in firefox as purple but in ie it is white? Anyone have any ideas?

.line2{ border-bottom: 1px solid; border-color: <?php echo($webinfo53)?>;}
3:10 pm on Feb 18, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fotiman is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 17, 2005
posts:4987
votes: 12


"border-bottom" is the shorthand for defining the width, style, AND color. Your CSS is technically incorrect. Try this:

.line2{ border-bottom: 1px solid <?php echo($webinfo53)?>;}
3:19 am on Feb 19, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 9, 2006
posts:177
votes: 0


Thanks. I did change it to

.line2{ border-bottom: 1px solid <?php echo ($webinfo53) ?>;}


However, it still does not work. However, the following does work?
a.butter:LINK {color: <?php echo ($webinfo53) ?>;


td.line2 doesn't work either
2:06 pm on Feb 19, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fotiman is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 17, 2005
posts:4987
votes: 12


I would suggest using IE8's Developer Tools to inspect the element and see what styles it thinks it's supposed to be applying. That might offer some clues.