Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIV tag css not working FireFox

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Can someone tell me why my style="CSS Stuff" is not working for the DIV tag in FireFox and only partialy works in I.E.

Code:
style=\"overflow:wrap; overflow-y:scroll;  border:none; width:299px; height=480px; font-family:$ptxt_style[0]; font-size:$ptxt_style[1]pt; color:$ptxt_style[2]; background:$ptxt_style[3]; scrollbar-base-color:$ptxt_style[3]; scrollbar-shadow-color:$ptxt_style[2];\">

Firefox doesn't show nay attributes used in the style command, and I.E works fine except It doesn't wrap the text for the horizontal z axis, yet i get my vertical y-axis scroll bar.

is it a syntax thing?

cheers,

1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
It's a long shot but It might be to do with the variables you have in there causing parsing errors.

Try dropping out of the style string and concatenate your variables into the string.

Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
sorry can you say that in english please foamy :)

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I've also found that if I put the code in the TD tag it doesn't work at all in either browser.

strange, I guess this is the problem with all the browsers not being properly CSS compliant.

how can i fix my problem ? is there a tag, that CSS works properly with or maybe a change in syntax?



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
ok i managed to sort it, overflow-y doesn't work in firefox, nor does CSS on the scrollbars, i also changed it to a <p> tag not sure if it helped but it works.

it seems you must use overflow:auto;

i found this...
Code:
<p name=\"PageText\" border=0 id=\"PageText\" style=\"overflow:auto; overflow-y:scroll;  border:none; width:299px; height:480px; font-family:$ptxt_style[0]; font-size:$ptxt_style[1]pt; color:$ptxt_style[2]; background:$ptxt_style[3]; scrollbar-base-color:$ptxt_style[3]; scrollbar-shadow-color:$ptxt_style[2];\">

works ok in firefox and fantastic in I.E.




"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top