Asheeown Posted November 15, 2007 Share Posted November 15, 2007 I have a css class "cont_txt" and when I try to execute for example this: <div class="cont_txt"> <table width="100%" border="0"> <tr> <td colspan="2"><div align="center"><b><u>$Name - $RaidSize man ($RaidLevel)</u></b></div></td> </tr> <tr> <td width="50%"><div align="right"><b>$BossName: </b></div></td> <td width="50%"><b>$BossStatus</b></td> </tr> </table> </div> The text is default and big, but when I use the <div class="cont_txt"> on a single line it does change it correctly, the variables are in there because this is a php script but I extracted the html because that's the only thing at fault here...any ideas? Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 15, 2007 Share Posted November 15, 2007 I don't understand the problem. Post the CSS. Quote Link to comment Share on other sites More sharing options...
Asheeown Posted November 15, 2007 Author Share Posted November 15, 2007 <style type="text/css"> .cont_txt { color:#FFFFFF; font-size:x-small; font-family:Verdana; margin-bottom:0px; margin-left:6px; margin-right:6px; margin-top:0px; } </style> When I use the div class for more than one line... <div class="cont_txt"> line 1 line 2 line 3 </div> It doesn't work, however when I use it for one line <div class="cont_txt">line 1</div> <div class="cont_txt">line 2</div> <div class="cont_txt">line 3</div> It works fine Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 15, 2007 Share Posted November 15, 2007 Hmm...works fine for me both ways. What browser are you using? Quote Link to comment Share on other sites More sharing options...
Asheeown Posted November 15, 2007 Author Share Posted November 15, 2007 Firefox and IE 7, It's mixed in inside a php function, would this have any effect on it? Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 15, 2007 Share Posted November 15, 2007 Possibly...can't really say without looking at the code. Quote Link to comment Share on other sites More sharing options...
Asheeown Posted November 15, 2007 Author Share Posted November 15, 2007 It's just growing more odd as time goes on, this happened about a month back, between putting in an edit script using ajax and a few other php functions...the php function that this is in is being called from another page which that page has the css on it, but I don't think the css is the problem because if I use a <a> tag on multiple lines it changes text to what I have specified in the style script Quote Link to comment Share on other sites More sharing options...
boushley Posted November 21, 2007 Share Posted November 21, 2007 Like pocobueno1388 said, its hard to help much unless we can see more of the code... because <div class="cont_txt"> line 1 line 2 line 3 </div> and <div class="cont_txt">line 1</div> <div class="cont_txt">line 2</div> <div class="cont_txt">line 3</div> work fine in both of the mentioned browsers... so we need to see the php code, to help you out. Or maybe even the output page... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.