|
|
|
|
![]() ![]() |
May 12 2007, 05:06 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 412 Joined: 4-October 06 From: Psychedelic Realms Member No.: 31,079 |
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 Anyone knows simple way to overcome this problem.. |
|
|
|
May 12 2007, 01:04 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,882 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
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 |
|
|
|
May 12 2007, 07:04 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 412 Joined: 4-October 06 From: Psychedelic Realms Member No.: 31,079 |
Lol, thanks for the * html tip
What can u say. Except, do you eat fish ![]() Oh, boy i really need to sleep now Thank you very much! |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 26th July 2008 - 04:30 PM |