Jump to content

Div specific line?


Asheeown

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/77409-div-specific-line/
Share on other sites

<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

Link to comment
https://forums.phpfreaks.com/topic/77409-div-specific-line/#findComment-391888
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/77409-div-specific-line/#findComment-391903
Share on other sites

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...

Link to comment
https://forums.phpfreaks.com/topic/77409-div-specific-line/#findComment-395597
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.