473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem using 2 lists for CSS formatting on one page

GroovyJanBrady
Hi, I'm very glad to have found this forum! This is my first project with significant CSS usage. Here is the site I am working on.
http://www.dorisleahwarcholik.com . The original page was a dreamweaver template I used to for the site. Then after discovering the power of CSS, I decided to strip it down and redo it using CSS.
http://www.dorisleahwarcholik.com/creations.html is the page I did controlling most of the page with CSS. I got pretty far redoing the design with CSS until I wanted to use a second list on the page.

The problem I have is using more than one "ul" on the page. The left hand nav is a list. I wanted to use a list to control the four choices in the main content area of the page. But any changes I make to the main content list affects the nav list, even though they were named differently. I imagine there is something I am not getting about the heirarchy of CSS. Any thoughts? (This giant pain in my butt is why I hacked up my beautifully clean code and slapped a table in there until I can figure it out!)

I have run this through validation for both html and css, as well as using the http://www.htmlhelp.com/tools/csscheck/ . I'm not seeing the conflict. I also checked the forum for other examples of what I am experiencing, but I'm not really sure how to articulate what the problem is and therefore don't know what to look for.

Any help would be appreciated. Thanks for your time.

GroovyJan
Mar 3 '07 #1
2 1475
One tip I would give is to employ correct use of ID and CLASS. For example:

#navigation li {
color : red
}

- in your style sheet would apply to any <li> element within the element which has the ID "navigation" (in your case a <ul>), hence, no need for repeating the same class for each <li>

Similarly, if you wanted to create a horizontal navigation, you could put it all within a <div> element, eg <div id="horizontalNav"> and then apply a style to each <ul><li> within that navigation, and even style the links and images within that <ul>, eg:

#horizontalNav ul li {
float : left;
}

#horizontalNav ul li a:hover {
color : red;
}

#horizontalNav ul li img {
border : 0
}

Hope that makes sense!
Mar 5 '07 #2
drhowarddrfine
7,435 Expert 4TB
You say you ran it through the validator but I see nine errors in html alone.
Mar 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
7
by: addled | last post by:
Hi there, after reading posts here for a few months, I've built the courage to see if someone can see where I"m going wrong in the webpage I've been working on. In particular the horizontal nav...
4
by: Charles Russell | last post by:
I am setting a three column layout within an existing table. The table uses previously devloped code so I am force to use it. I have the following styles defined. <code><!--Preventative insert...
0
by: mharris | last post by:
I need help with merging two Word documents into one through C# code. The problem isn't so much getting the documents put into one as it is maintaining the appropriate formatting, or rather...
6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
5
by: krishnakant Mane | last post by:
hello all. thanks for the help and for pointing me to the proper url for wxpython related issues. I am so happy that I now have a very easy gui library that can do practically every thing with...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
1
Daxthecon
by: Daxthecon | last post by:
I have 3 drop down lists MM DD yyyy and have it calling the DateTime.Now.(time reference) then the format. I have populated the dropdownlist by hand with the selections that are available if the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.