Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Center logo and menu?

Aloittaja colby2152, lokakuu 26, 2011, 08:17:50 IP

« edellinen - seuraava »

colby2152

Simple request... I want to center the logo and navigation menu.  Where in the CSS do I edit the left to center alignment?
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

colby2152

I am not sure why this was moved to Graphics... it is about editing CSS to center the logo and navigation menu of SMF.
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

ARG01

Maybe try a search. I am not going to bother searching but I know that there are quite a few topics here that cover exactly what you need.

;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Sir Osis of Liver


Varies with theme, but this does it -



/// Center menu

echo '
</div>

<div id="toolbar" align="center">
<div style="display: inline-block;">
',template_menu(),'
</div>
</div>


When in Emor, do as the Snamors.
                              - D. Lister

colby2152

Lainaus käyttäjältä: Krash. - lokakuu 27, 2011, 11:45:38 IP

Varies with theme, but this does it -



/// Center menu

echo '
</div>

<div id="toolbar" align="center">
<div style="display: inline-block;">
',template_menu(),'
</div>
</div>



None of that worked.  I was hoping to do this in the index.css anyways. ARG - I did search but everything I tried didn't work.
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

Sir Osis of Liver


You have to change id="toolbar" to what's in your /css/index.css for the menubar div.

Attach your index.template.php and I'll have a look.

When in Emor, do as the Snamors.
                              - D. Lister

Antechinus

Take a look in my sig. Alternatively, read this (which is where I got the idea for the mod): http://matthewjamestaylor.com/blog/centered-dropdown-menus

colby2152

Lainaus käyttäjältä: Krash. - lokakuu 28, 2011, 03:48:33 IP

You have to change id="toolbar" to what's in your /css/index.css for the menubar div.

Attach your index.template.php and I'll have a look.

Thanks... it is attached.
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

Sir Osis of Liver



// Show the menu here, according to the menu sub template.

echo '
<div align="center">
<div style="display: inline-block;">
', template_menu() ,'
</div>
</div>';

echo '
</div>
</div>';


// The main content should go here.



When in Emor, do as the Snamors.
                              - D. Lister

Antechinus

Why do you want to hack the markup with extra divs, deprecated attributes and inline css when you can get the same result with a few minor index.css tweaks?

colby2152

Lainaus käyttäjältä: Antechinus - lokakuu 29, 2011, 03:21:06 IP
Why do you want to hack the markup with extra divs, deprecated attributes and inline css when you can get the same result with a few minor index.css tweaks?

That's what I am looking for - but how can I do this?
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

Antechinus


Sir Osis of Liver

Lainaus käyttäjältä: Antechinus - lokakuu 29, 2011, 03:21:06 IP
Why do you want to hack the markup with extra divs, deprecated attributes and inline css when you can get the same result with a few minor index.css tweaks?

It werks gud.

When in Emor, do as the Snamors.
                              - D. Lister

Antechinus

So do the few minor css tweaks. ;)

Advertisement: