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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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