• 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!

[website] problem with image and text centering

analizer

New Member
Joined
Apr 13, 2011
Messages
63
Reaction score
2
120kzh0.png


It looks like 1 now. I want it to look like 2 but i dont know how to center(?) the image and text. When it's only text it it centered OK, but when i add image it moves a bit down...

here is the code
Code:
<div id="menu-top">
<img src="http://myotsname.com/image/news.gif"> <b>News</b> 
</div>

please help
 
Wrong, the position of pictures etc etc are not in .ini file.. .css for sure.

<div id="menu-top">

this is .ini file, grow the height to put the image where you want, or put the
PHP:
<div id="menu-top">
<img src="http://myotsname.com/image/news.gif"> <b>News</b> 
</div>

a few of lines more up in .tpl
 
ah ok you want the photo more up, I think that you want another thing xD, so try this

PHP:
<div id="menu-top">
<img src="http://myotsname.com/image/news.gif"> <b>News</b> 
<br><br>
</div>
 
ok, so in the main file, i think index.php , well where you are putting the code take the code and move it a few of lines up

edit : layout.php i want to say, not index.php :p
 
i cant do it, because it will go out of menu

Code:
<div id="[COLOR="red"]menu[/COLOR]">

<div id="menu-top">
<img src="http://myotsname.com/image/news.gif"> <b>News</b> 
</div>
 
What you are doing right now is changing the menu top position, you want to change the small image position instad. You want to move that up abit. This has nothing to do with:
PHP:
<div id="menu-top"> 
<img src="http://myotsname.com/image/news.gif"> <b>News</b>  
</div>
 
try this


PHP:
<div id="menu">
<div id="menu-top">
<img src="http://myotsname.com/image/news.gif"> <b>News</b> 
</div>

PHP:
<div id="menu">

<div id="menu-top">
<top><img src="http://myotsname.com/image/news.gif"> <b>News</b> </top>
</div>
 
Sorry for double post but here's what you want to do;

Go to Image folder, find the picture of that news scroll, check what the files is named.
Now go into layout.php, ctrl-f type the name of the image file, when you find it check the div class.
Now go to basic.css search for the class from layout.php and there you can change the position of the picture.

Let us know if it worked
 
Last edited:
What you are doing right now is changing the menu top position, you want to change the small image position instad. You want to move that up abit. This has nothing to do with:
PHP:
<div id="menu-top"> 
<img src="http://myotsname.com/image/news.gif"> <b>News</b>  
</div>

so tell me how to move that up abit
 
Sorry for double post but here's what you want to do;

Go to Image folder, find the picture of that news scroll, check what the files is named.
Now go into layout.php, ctrl-f type the name of the image file, when you find it check the div id.
Now go to basic.css search for the id from layout.php and there you can change the position of the picture.

Let us know if it worked





me:
search in .ini the name "menu-top" and change the values of height, i think it will work

edit: use ctrl+f or ctrl+b to find things more faster
 
Back
Top