Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Nav Bar DIV Background problem
Old 10-25-2010, 05:11 PM Nav Bar DIV Background problem
Skilled Talker

Posts: 78
Name: Ash Kwil
Trades: 0
Ok I have a navbar on a forum im working on. Here is the HTML for it...

HTML Code:
<!-- NEW NAV -->
<div id="nav_back" >
 
 
<center>
<a class="nav_buttons" href="{U_INDEX}"><img src="{T_THEME_PATH}/images/nav_home.png" border="0" alt="" /></a>
<!-- IF S_USER_LOGGED_IN -->
<a class="nav_buttons" href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/nav_user_cp.png" border="0" alt="" /></a>
<!-- ENDIF -->
<!-- IF not S_USER_LOGGED_IN -->
<a class="nav_buttons" href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/nav_register.png" border="0" alt="" /></a>
<!-- ENDIF -->
<a class="nav_buttons" href="{U_SEARCH_ACTIVE_TOPICS}"><img src="{T_THEME_PATH}/images/nav_active.png" border="0" alt="" /></a>
<a class="nav_buttons" href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/nav_members.png" border="0" alt="" /></a>
<a class="nav_buttons" href="{U_SEARCH}" rel="nofollow"><img src="{T_THEME_PATH}/images/nav_search.png" border="0" alt="" /></a>
<a class="nav_buttons" href="{U_FAQ}"><img src="{T_THEME_PATH}/images/nav_faq.png" border="0" alt="" /></a>
 
<a class="nav_buttons" href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/nav_pms.png" border="0" alt="" /></a>
<a class="nav_buttons" href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/nav_logout.png" border="0" alt="" /></a>
 
</center>
</div>
And here is the CSS attached to the class "nav_back"

Code:
#nav_back {
background-image: url("{T_THEME_PATH}/images/nav_back.png");
height: 31px
vertical-align: middle;
horizontal-align: middle;
}
I want to know why the picture nav_back.ong is not displaying as i would like.

here is a link to the picture

http://bodyworkspersonaltraining.co.uk/old/forum/styles/X_Silver/theme/images/nav_back.png

I am wanting this picture to be the background for "nav_back" and so my buttons display perfectly with it, im really having trouble with this.

Thanks for all of your help so far on this forum, its greatly appreciated!

Cheers, Ash

Last edited by Ashkwil; 10-25-2010 at 05:13 PM..
Ashkwil is offline
Reply With Quote
View Public Profile Visit Ashkwil's homepage!
 
 
Register now for full access!
Old 10-25-2010, 10:20 PM Re: Nav Bar DIV Background problem
moatist's Avatar
Skilled Talker

Posts: 64
Trades: 0
This should get you started:

Code:
#nav_back {
background-image: url("{T_THEME_PATH}/images/nav_back.png");
height: 36px
width: 1015px;
margin: 0 auto;
}
__________________
Think in code; Dream in digital.

<?php if($helpfull == true){ $talkupation++; } ?>
moatist is offline
Reply With Quote
View Public Profile
 
Old 10-26-2010, 08:39 AM Re: Nav Bar DIV Background problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Ok, get rid of the vertical and horizontal align junk, those are just not going to work the way it does on tables.

I would also put the navigation in a proper unordered list, which is easily styled, and ditch that nasty <center> tag and use css to center it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-26-2010, 12:24 PM Re: Nav Bar DIV Background problem
Skilled Talker

Posts: 78
Name: Ash Kwil
Trades: 0
Quote:
Originally Posted by moatist View Post
This should get you started:

Code:
#nav_back {
background-image: url("{T_THEME_PATH}/images/nav_back.png");
height: 36px
width: 1015px;
margin: 0 auto;
}

I put in that code but It still does not display the full image, if you look on the site you will see what I mean
Ashkwil is offline
Reply With Quote
View Public Profile Visit Ashkwil's homepage!
 
Old 10-26-2010, 12:53 PM Re: Nav Bar DIV Background problem
CSM
CSM's Avatar
Front-End Developer

Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
Really...

1. I would not go with 1015px width (think of users with 1024px width res)
2. Learn HTML/CSS
3. Use Google to find proper UL/LI nav's. There are a LOT.

Tables are NOT for layout.
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Reply     « Reply to Nav Bar DIV Background problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66292 seconds with 12 queries