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
Top + side navbars - prob with side nav taking on properties given to top navbar
Old 09-05-2010, 01:41 PM Top + side navbars - prob with side nav taking on properties given to top navbar
Junior Talker

Posts: 3
Name: Paul
Trades: 0
I'm building a new website with HTML and CSS and I need a top navbar for some main categories and then also a side navbar for more extra categories.

I'm creating in Dreamweaver and checking how things look in liveview as well as in Firefox and IE.
I must be doing something wrong with the CSS somewhere because my top navbar is exactly how I want it but the side navbar is for some reason taking on some of the attributes that I had assigned to the topnavbar.

I'm certainly no expert but I have built a website with HTML and CSS before and didn't encounter this problem.

The CSS below I used to style the top navbar (I will be improving this!) and I have also defined a CSS rule for #sidebar1 ul li a

The CSS rule below id over-riding the one for the sidebar1 ul li a
Code:
#header ul li a:link,a:visited
{
    display:block;
    width:150px;
    font-weight:bold;
    color:#111111;
    text-align:center;
    text-decoration:none;
    text-transform:none;
    height: 40px;
    padding-top: 15px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    font-family: Verdana, Geneva, sans-serif;
    background-color: #099;
    margin-left: 11px;
}
I'm assuming a CSS error but maybe I've made an HTML error.

Is there anyone experienced out there who can see what I must have done wrong?
I can give extra info and paste all the CSS and/or HTML code for the page if you like or paste the whole page code if needed.

Help VERY much appreciated. Thanks.

Last edited by chrishirst; 09-10-2010 at 07:38 PM..
Coops40 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-05-2010, 04:45 PM Re: Top + side navbars - prob with side nav taking on properties given to top navbar
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Lets see all the code or a URL for the problem page, please.
__________________
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 09-06-2010, 10:16 AM Re: Top + side navbars - prob with side nav taking on properties given to top navbar
Junior Talker

Posts: 3
Name: Paul
Trades: 0
Thanks LadynRed

I managed to solve the issue in the end. It was something to do with how I'd defined the classes, ids and compounds, and I fiddled around for ages and eventually got it sorted. Thanks for your response though. Cheers.
Coops40 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Top + side navbars - prob with side nav taking on properties given to top navbar
 

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.69502 seconds with 12 queries