Bodybuilding.com Forums
Go Back   Bodybuilding.com Forums > More General Categories > Misc.

Save Up To 50% Off Retail Store Supplement Prices In The Bodybuilding.com Store!

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-02-2007, 10:43 PM   #1
AKR
Troll Magnet
 
AKR's Avatar
 
Join Date: Jul 2003
Posts: 20,880
BodyBlog Entries: 3
BodyPoints: 25677
Rep Power: 12557
AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)
Visit AKR's BodySpace
a little CSS help, please (RESOLVED)

reps for the person that can help figure this out. i've got a menu bar i'm trying to place at the bottom of an image at the top of my website. right now, the menu is at the top of the image. as you can see, the image is set as the background so i can have the menu appear over it. unfortunately, i'm not skilled enough to figure out how to get that **** to the bottom. i went through the css file and tried "vertical-align: bottom;" on each style, just to see if anything would happen, and nothing did. i'm not sure what to do.


this is my css file for the menu.

Quote:

#sbtabs{
margin-left: 0px;
padding: 0;
width: 100%;
height: 159px;
background: transparent;
background-image: url(http://www.bodyxpressions.net/skin1/...ntheader.png); background-repeat: no-repeat;
voice-family: "\"}\"";
voice-family: inherit;
padding-left: 4px;
}

#sbtabs ul{
font: bold 11px Verdana, Arial, sans-serif;
margin:0;
padding:0;
list-style:none;
}

#sbtabs li{
display:inline;
margin:0 2px 0 0;
padding:0;
/*text-transform:uppercase;*/
}


#sbtabs a{
float:left;
color: white;
background: #3F5D8A url(speedbar_tabs_left.gif) no-repeat left top;
margin:0 2px 0 0;
padding:0 0 1px 3px;
text-decoration:none;
letter-spacing: 1px;
}

#sbtabs a span{
float:left;
display:block;
background: transparent url(speedbar_tabs_right.gif) no-repeat right top;
padding:4px 9px 2px 6px;
}

#sbtabs a span{
float:none;
}

#sbtabs a:hover{
background-color: #5C80B7;
}

#sbtabs a:hover span{
background-color: #5C80B7;
}

#sbtabs #current a, #sbtabs #current span{ /* currently selected tab */
background-color: #000;
}

#sbtabsline{
clear: both;
padding: 0;
width: 100%;
height: 2px;
line-height: 0px;
background: #000;
border-top: 0px solid #fff; /* border between bar and tabs */
}

and here is the template for the "speedbar"

Quote:
{if $speed_bar}
<div id="sbtabs">
<ul>
<li {if $main eq "catalog" && $current_category.category eq ""}id="current"{/if}><a href="home.php" title="Home"><span>Home</span></a></li>
{if $login eq ""}
<li {if $main eq "register"}id="current"{/if}><a href="register.php" title="{$lng.lbl_register}"><span>{$lng.lbl_regist er}</span></a></li>
{/if}
<li {if $main eq "cart" && $smarty.get.mode ne "checkout"}id="current"{/if}><a href="cart.php" title="{$lng.lbl_view_cart}"><span>{$lng.lbl_view_ cart}</span></a></li>
<li {if $smarty.get.mode eq "checkout"}id="current"{/if}><a href="cart.php?mode=checkout" title="{$lng.lbl_checkout}"><span>{$lng.lbl_checko ut}</span></a></li>
{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
<li {if $speed_bar[sb].orderby eq $page_data.orderby}id="current"{/if}>
<a href="{$speed_bar[sb].link}" title="{$speed_bar[sb].title}"><span>{$speed_bar[sb].title}</span></a></li>
{/if}
{/section}
<li {if $smarty.get.mode eq "update"}id="current"{/if}><a href="help.php?section=contactus&mode=update" title="{$lng.lbl_contact_us}"><span>{$lng.lbl_cont act_us}</span></a></li>

<li {if $smarty.get.mode eq "update"}id="current"{/if}><a href="sitemap.php?section=sitemap&mode=update" title="{$lng.lbl_sitemap}"><span>{$lng.lbl_sitemap }</span></a></li>
<li {if $smarty.get.mode eq "update"}id="current"{/if}><a href="pages.php?pageid=1" title="{$lng.lbl_Articles}"><span>{$lng.lbl_Articl es}</span></a></li>
</ul>
</div>
<div id="sbtabsline">&nbsp;</div>
{/if}
Attached Images
File Type: jpg menutop.jpg (19.9 KB, 20 views)
__________________
MODS: Please actually read my posts before acting on what's been reported.

CHECK OUT MY MUSIC:
Myspace.com/buildingcastlesmusic

"We're going to play hide and go seek. I'm going to go hide, not tell anyone, and if they can't find me, they're going to hell." - God

Last edited by AKR; 01-02-2007 at 11:12 PM.
AKR is offline   Reply With Quote
Old 01-02-2007, 10:57 PM   #2
jpadilla
Banned
 
jpadilla's Avatar
 
Join Date: Oct 2006
Age: 24
Posts: 2,430
BodyBlog Entries: 0
BodyPoints: 18284
Rep Power: 0
jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)jpadilla has a reputation beyond repute. Best rank possible! (+100000)
Visit jpadilla's BodySpace
alrighty buddy, apart from the... the... really bad css coding, theres a whole bunch of ways to fix it. whith the way you coded it, i would suggest
giving the "#sbtabs ul" tag a fixed height, and then subtract that height from 159px ( height of the image ) and then use that number as a top margin for the #sbtabs ul tag. so..... les seee.. it would look a lil like this

Code:
#sbtabs ul{
height: 20px;
font: bold 11px Verdana, Arial, sans-serif;
margin:0;
margin-top: 139px;
padding:0;
list-style:none;
}
but really... you gotta study up on your css... theres much better ways to slice/code this header/menu.
jpadilla is offline   Reply With Quote
Old 01-02-2007, 11:09 PM   #3
AKR
Troll Magnet
 
AKR's Avatar
 
Join Date: Jul 2003
Posts: 20,880
BodyBlog Entries: 3
BodyPoints: 25677
Rep Power: 12557
AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)AKR has a reputation beyond repute. Best rank possible! (+100000)
Visit AKR's BodySpace
Quote:
Originally Posted by jpadilla View Post
alrighty buddy, apart from the... the... really bad css coding, theres a whole bunch of ways to fix it. whith the way you coded it,
i didn't write it, i just use it. it was a free download for a mod to my shopping cart system.


Quote:
i would suggest
giving the "#sbtabs ul" tag a fixed height, and then subtract that height from 159px ( height of the image ) and then use that number as a top margin for the #sbtabs ul tag. so..... les seee.. it would look a lil like this

Code:
#sbtabs ul{
height: 20px;
font: bold 11px Verdana, Arial, sans-serif;
margin:0;
margin-top: 139px;
padding:0;
list-style:none;
}
but really... you gotta study up on your css... theres much better ways to slice/code this header/menu.
i'm trying to pick up what i can here and there. so many different things to learn, only so much time.

it works! thanks a ton. repped.
__________________
MODS: Please actually read my posts before acting on what's been reported.

CHECK OUT MY MUSIC:
Myspace.com/buildingcastlesmusic

"We're going to play hide and go seek. I'm going to go hide, not tell anyone, and if they can't find me, they're going to hell." - God
AKR is offline   Reply With Quote
Old 01-02-2007, 11:11 PM   #4
Metallical2
Registered User
 
Metallical2's Avatar
 
Join Date: May 2006
Age: 21
Posts: 909
Rep Power: 35
Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)Metallical2 has much to be proud of. One of the best! (+20000)
I came here looking for a thread about Counter-Strike: Source. :/
Metallical2 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Member Login

Sign in for more FREE features and tools!

Username or
Email Address:
Password:
Remember Me


New to Bodybuilding.com?
Sign Up Now It's FREE!




All times are GMT -7. The time now is 04:31 AM. Archive