Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 08:23:38 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155442 Posts in 21702 Topics by 7754 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Arranging Buttons  (Read 513 times)
Pmaurer

Offline Offline

Posts: 34


« on: October 15, 2008, 08:44:36 PM »

http://chevelleonline.net/wb/

I would like to rearrange the buttons at the top of my page so that instead of being in a vertical row they are in a horizontal row under the header flash swf (if you're using Mozilla you will be able to see the swf)

I changed my old code and put it in list form for each individual button since I figured that's how I would be able to make the buttons move into a horizontal position but it obviously didn't work...:

Code:
     if(SHOW_MENU) {
     ?>
     <div class="menu">
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/wb/" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/01%20home.gif"></a></li>',''); ?>
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/wb/pages/home/band.php" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/02%20band.gif"></a></li>',''); ?>
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/wb/pages/home/media.php" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/03%20media.gif"></a></li>',''); ?>
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/Gallery/" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/04%20gallery.gif"></a></li>',''); ?>
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/XMB" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/05%20forum.gif"></a></li>',''); ?>
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/wb/pages/home/site.php" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/06%20site.gif"></a></li>',''); ?>
      <?php show_menu(1,0,1,true,'<li><a href="http://www.chevelleonline.net/wb/pages/home/links.php" target="_top"><img src="http://www.chevelleonline.net/wb/templates/global/images/Buttons/07%20links.gif"></a></li>',''); ?>
      <?php
      


I'd really appreciate a way that I can make them horizontal (whether it be something i need to change in my index.php or my styles.css. thanks!
Logged
Chaploo
Guest
« Reply #1 on: October 21, 2008, 12:57:39 PM »

Hi,

seems to be a css problem, I guess. Try using display: inline; with the navigation's <ul> and/or <li>.

Regards
Jochen
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #2 on: October 21, 2008, 02:13:10 PM »

@pmauerer

why did you use the show_menu call, when you hardcode the whole menu?

Matthias
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!