Jump to content
MakeWebGames

Recommended Posts

Posted

Hello

Everything is oke for firefox but not for ie.Writings show up on left of the table.But i want it to shows up on center of the table like in firefox.

Code :

<div class="redbg">

<div class="red_txt1">Players:<span> $membs</span>Online Now: <span> $online</span></div>

<table width='180' border='0' cellspacing='0' cellpadding='0'>

<tr>

<style type='text/css'>

.style1 {

text-align: center;

}

</style>

<div class='style1'>

<h3><u>$gameinfo</u></h3>

$players $membs

$mal $male

$fems $fem</div>

</td></tr>

</table>

Posted

a_bert is right, IE messes around with certain things. Try defining an absolute width for the table.

Also, you might want to look further on, it might be that IE is using a previous defined alignment.

Oh and PS., margin has nothing to do text alignment. It's a positioning instruction for elements.

Posted

o i did'nt see the text part

ur html was very dirty so im gonna redo it and see if that helps a problem i first seen is that u had a style tag after a <TR> tag in the middle of a table

so if this doesnt work u should look through all of ur html and make sure <style>,<link>,<title>,<meta>,<script>,etc... tags are in the <head> tag and not in the middle of any other tag

also when using <table> tags and u write text to the table without putting <th> or <td> tags it will be outside of the table

put this somewhere in ur head tag

<style type='text/css'>
.style1 { text-align: center; }
</style>

 

put this where ever u got the peace of code from

<div class="redbg">
<div class="red_txt1">Players:<span>$membs</span>Online Now: <span> $online</span></div>
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr><td>
<div class='style1'>
<h3><u>$gameinfo</u></h3>

$players $membs 

$mal $male 

$fems $fem</div> 

</td></tr>
</table>

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.   Paste as plain text instead

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