matak
May 12 2007, 05:06 AM
I just started designing something that i thought is gonna be a really simple xHTML strict template. Everything is right except that i thought of using unordered list, some other list under that list. Well this is the code for the Menu that is cousing me problems CODE <div id="lijevo"> <ul> <li>List1</li> <li>List2</li> <li> <ul> <li>List 2 Sublist</li> <li> <ul> <li>This is really long text that explains a bunch of nothing3</li> <li>This is really long text that explains a bunch of nothing2</li> <li>This is really long text that explains a bunch of nothing1</li> </ul> </li> </ul> </li> <li>List3</li> <li> <ul> <li>List 3 Sublist</li> <li> <ul> <li>This is really long text that explains a bunch of nothing3</li> <li>This is really long text that explains a bunch of nothing2</li> <li>This is really long text that explains a bunch of nothing1</li> </ul> </li> </ul> </li> </ul> </div> I arranged CSS with few simple code lines like this CODE div, p, h1, ul, li{margin:0;padding:0; list-style: none; }
div#lijevo ul { /*indenting and width*/ margin-left: 10px; } At first i didn't use that <li> tag before <li>list2 sublist</li> but that didn't validate as (x)HTML strict  . Then when i added the tag IE shows padding under <li>List2</li>, like you can see it on test website HERE. Anyone knows simple way to overcome this problem..
Reply
jlhaslip
May 12 2007, 01:04 PM
Try adding zero margins and padding to the universal star selector as follows: CODE * html {margin:0;padding:0;} That should eliminate all margins and padding on all elements on the page. You will then need to add back the magins and padding where you want some. Alternately, use a more specific selector to target the UL li UL for the second lists. check this out: http://jlhaslip.trap17.com/samples/misc/ba...ic_3lvl_ul.html
Reply
matak
May 12 2007, 07:04 PM
Lol, thanks for the * html tip  .. And guess what, it wasn't CSS but HTML problem.. I opened and closed the wrong <li> at top. Now i saw how u did it and it's fixed. What can u say. Except, do you eat fish  Oh, boy i really need to sleep now  Thank you very much!
Reply
Similar Topics
Keywords : , problem, css, unordered, list, display, problems, ie6, bug, making, unordered, list, unordered, list, couses, padding, appe
- Span "display: _____" Problems
block vs inline (2)
Making My Page 100% Valid
(4) I'm having so many issues aren't I XD lol Ok, so I'm using http://validator.w3.org/
and attempting to validate all of the pages on my site but im having issues with the index page, it
is all valid except for a bunch of links that are on my site... lol and i guess there can be a way
that links are invalid http://validator.w3.org/check?uri=http%3A%...net%2Findex.php that is what
it is, any idea how i might be able to change this? or should i just deal with coppermines flawed
URL's and leave one page invalid?....
Lists, Unordered And Nested
some layout tricks (2) Unordered lists are one of the three list types in (x)html. The others are Ordered Lists and
Definiton Lists. The w3c page of information about lists is here They all behave the same as
(x)html elements, but there are some differences between them. Read the Specification page linked
above to know more that you need to know about them. Only difference between html4 and xhtml is the
tags must be lower-case and closed for xhtml to be valid. Ordered Lists have numbers preceding
them. Paste the following code into a file and display it in your Browser to see the eff....
Definition Lists To Display Artist, Cd, And Track
The semantically correct method. (0) I had a situation where I needed to code a listing of Bands, Albums (CD's), and theTracks on
each of the albums. In order to develop the page in a semantic manner, the best way to develop the
code was to use the Definition List, Definition Term and Definition Data tags as follows:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> listing albums and tracks
html tags, listing albums and tracks for different Bands, CSS
dl tag" /> html tags." /> /* */ ....
Height % In Ff Problems With Css
(3) Does anyone know how to make the height of a div in firefox equal to the percentage you input? For
example if I put blablabla the div container will only be as high as the text makes it, when in
internet explorer it does make it take up 100% of the page or whatever height in percentage I input
in it. by the way, html, body {} have 100% height in them, so does the container that has the div
element. Example: html,body {height:100%;} #container {height:100%;} #div {min-height:100%;} the
one called #div is the one I want with 100% height. Thanks for any help.....
Unordered List Css Layout
two rows of list and sublist (4) I have a layout which i want to do fully in CSS. Im having trouble centering the second list, or
sublist which comes from the menu. It doesnt work in IE now, just firefox (Actually the page doesnt
even show on IE, nor Opera, i dont know why). I just want it to appear centered, when im hovering
the main list, not left aligned... Here's the link, youll understand when you see it...
http://web.cucea.udg.mx/cucea/graphix/level5/ I also want to fix the background, (i removed the
background for now) becouse when i hover the sublist items, the background becomes bigge....
Embeded Div's And Css Problems
(10) I am making a website dessign that makes heavy use of CSS and DIV's now When I view my site as
it is in IE it works almost perfect, but when I open it in Firefox the main background dissapears,
here is the site here is the site and here is the external CSS file: CODE BODY {
background-color:#ffffff; background-image: url(images/topimage.jpg);
background-repeat:repeat-x; } DIV.content { width:760px; position:absolute;
top:19px; left:19px; } DIV.head { width:758px; height:125px;
background-image: url....
css scripting problems need help
NEED HELP (5) for some unknown reason the scroll bar info will not kick in it eithers makes the page doe wierd
things or nothing at all and i know i got it right so whats need help QUOTE BODY {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; margin:
0px; padding: 0px; background-color: #2d3851; } h1 { font-family: Times New Roman, serif;
font-size: 26px; font-weight: normal; color: #e9f2fc; } h2 { font-family: Verdana, Arial,
Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #333333; } p { font-family:....
Looking for , problem, css, unordered, list, display, problems, ie6, bug, making, unordered, list, unordered, list, couses, padding, appe
|
|
Searching Video's for , problem, css, unordered, list, display, problems, ie6, bug, making, unordered, list, unordered, list, couses, padding, appe
|
advertisement
|
|