Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Bombat - toukokuu 24, 2011, 03:59:39 IP

Otsikko: need help centering my logo
Kirjoitti: Bombat - toukokuu 24, 2011, 03:59:39 IP
i'm having difficulties to centered my logo.

i'm using smf RC3 and using this theme :http://custom.simplemachines.org/themes/index.php?lemma=749

and this is my site : http://www.thesims-indonesia.com/index.php?action=forum

please help  ;)


Otsikko: Re: need help centering my logo
Kirjoitti: mashby - toukokuu 24, 2011, 05:19:49 IP
File to edit is this one:
http://www.thesims-indonesia.com/Themes/ds-natural_20rc3/css/index.css?rc3
Section to edit...find this:
#logo a {
position: absolute;
left: 0;
  display: block;
width: 800px;
height: 600px;
background: url(../images/custom/logo.png) no-repeat;
}

I'm not entirely sure if it's truly centered or not, but changing left: 0; to left: 255px; will give it the appearance of being in the center. You could also ask in the support topic for that theme.
Otsikko: Re: need help centering my logo
Kirjoitti: Bombat - toukokuu 24, 2011, 05:35:55 IP
now its centered   :) thank youuuu so much !
Otsikko: Re: need help centering my logo
Kirjoitti: antechindia - toukokuu 26, 2011, 06:57:42 AP
#logo {
   position: absolute;
     display: block;
   width: ;
   height: ;
   background: url(../images/custom/logo.png) no-repeat;
}


create a new div name logo then give proper height and width and call it in html.