• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NewsHeadlineText.. help +rep!

Believer

Aashora.net
Joined
Aug 26, 2010
Messages
423
Reaction score
7
Location
Far away from home.
Hello, this is how it looks like now....

8oTHj.png


...When i use this code....

PHP:
$main_content .= '<div class=\'NewsHeadline\'>
        <div class=\'NewsHeadlineBackground\' style=\'height:28px; border-left: 1px solid #000000; border-right: 1px solid #000000; background-image:url('.$layout_name.'/images/news/newsheadline_background.gif)\'>
        <table border=0 ><tr><td style="padding-top:4px;"><img style="margin-top: -7px;" src="'.$layout_name.'/images/news/icon_1.gif" class=\'NewsHeadlineIcon\' alt=\'\' /></td>
		<td><font color="'.$layout_ini['news_title_color'].'"><font size="1pt">'.date('j M Y', $row['post_date']).' -</font> <b>'.$row['post_topic'].'</b></font></td></tr></table>
        </div>
        </div>
        <table style=\'clear:both\' border=0 cellpadding=0 cellspacing=0 width=\'100%\'><tr>
 <td><img src="'.$layout_name.'/images/global/general/blank.gif" width=10 height=1 border=0 alt=\'\' /></td>';

... But i want it like tibia.com....

fufGO.png


The problem: The text isnt in middle :/

Help please.. i have been trying to do this all night-.-

Rep++
 
Please specify better your issue, I really dont see any difference between your 2 images.
There is two parts in this code..
1. The icon which i've added margin-top="-7px" to
2. Second part is the title that says "16 sep 2011 - asfas" and here is my problem. I want this part to move up so it centers.
 
There is two parts in this code..
1. The icon which i've added margin-top="-7px" to
2. Second part is the title that says "16 sep 2011 - asfas" and here is my problem. I want this part to move up so it centers.

I am not sure if I fully understand your question, but it would be in my belief that your problem is because you have a margin-top -7px, and a solution for that would be to remove that line of code. Although, I do not really see the difference.
 
Back
Top