This is a discussion on "problem with floating list" within the Web Page Design section. This forum, and the thread "problem with floating list are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
problem with floating list
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
problem with floating list
hello to all i have a problem with this list and its doing my head in.
the problem is the list menu works fine until imake it float left. then the list-style-type: square disappears can anybody explain this to a newbee in css, code below css code
|
|
|
|
#2
|
|||
|
|||
|
Re: problem with floating list
Tried your code.
I see the marker in IE, Firefox and Opera. |
|
#3
|
||||
|
||||
|
Re: problem with floating list
if not, make sure li have left margin (which is the space used for the squares)
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#4
|
|||
|
|||
|
Re: problem with floating list
thanks for that ive tried the margin but an still only get the square to show up in ff not ie am i missing something or does css code not universal
thanks again john |
|
#5
|
||||
|
||||
|
Re: problem with floating list
CSS is universal but IE can be a real bitch sometimes. Can we have a URL? or even some screenshots?
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
#6
|
|||
|
|||
|
Re: problem with floating list
http://www.testreg8.co.uk/testcss/
thats the url it dont show much just my name and the problem with ie thanks john |
|
#7
|
||||
|
||||
|
Re: problem with floating list
ooooherrr! wierd problem!
I honestly don't know what to suggest... I'll do some home work on it though and see what I can come up with.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
#8
|
|||
|
|||
|
Re: problem with floating list
tell me about it seems that css is going mad in ie just lately ive got problems coming out of my ears.
thanks john |
|
#9
|
||||
|
||||
|
Re: problem with floating list
DAMN! I cannot make it work!!!!!!
I think I understand the look you want and I used a background image: http://www.123cleaners.com
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#10
|
|||
|
|||
|
Re: problem with floating list
thanks for all the help sorry ive taken so long to get back to you all but ive been away for the weekend.
thanks again john |
|
#11
|
|||
|
|||
|
Re: problem with floating list
You need padding on the left of the li to show the bullet image. i.e. padding: 0 0 0 14px; or something. alternately you can use a background image on the li vs a standard bullet i.e.
background:url("foo.jpg") center left no-repeat;
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#12
|
|||
|
|||
|
Re: problem with floating list
Forgot to mention, display:inline; negates a lists style. So you will need to use a background image. or float them left in which case you will need a clear element to keep the content below it. Problem is if you go the float method you won't be able to center the ul with text-align:center; etc. I would search www.alistapart.com and find a method of implementation that is right for your needs. FF is a lot nicer to people than say safari. Safari from what I know is much more strict in its css parsing. e.g. color: FFF; will work in FF but safari requires color:#fff;. etc etc.. As for IE, well it is just a sloppy piece of cow poo.
Edit: As I read his code wriong he is using float:left so the padding may fix it. I need coffee. Here is a snippet from the nav in one of my sites which uses a background image for a bullet. Bold shows the image placement: /* side bar link and list styles */ #sidebar ul { padding: 0; margin: 0; } #sidebar li { list-style-type: none; border-bottom: 1px solid #FFF; } #sidebar li.sideheading { padding: 12px 6px 12px 0; background-color: #003E81; color: #FFF; font-weight: bold; text-align: center; } #sidebar li a { display: block; color: #003E7E; font-weight: bold; padding: 6px 6px 6px 28px; text-decoration: underline; background: #EEECE1 url(../images/texas_bullet.gif) center left no-repeat; } #sidebar li#sidecurrent a { color: #FFF; background-color: #A81A18; text-decoration: none; } #sidebar li a:hover { color: #A81A18; background-color: #E5E3D4; text-decoration: underline; } /* end sidebar link and lists tyles */
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Jul 11th, 2006 at 14:08. |
|
#13
|
||||
|
||||
|
Re: problem with floating list
Quote:
Do you know something from a past experience or something?
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
#14
|
|||
|
|||
|
Re: problem with floating list
I know nothing! heh
Quote:
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| problem, floating, list |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| floating divs problem in IE | r0ck80y | Web Page Design | 4 | May 19th, 2008 14:43 |
| having problem floating elements | danny322 | Web Page Design | 1 | Jan 14th, 2008 16:45 |
| First image problem and inline list problem | konnor5092 | Web Page Design | 8 | Dec 1st, 2007 09:08 |
| Problems floating a list, as well as some other issues! | blizeH | Web Page Design | 7 | Oct 14th, 2006 20:13 |
| Problem with a floating layer. | derdeb | Web Page Design | 7 | Jul 8th, 2005 18:22 |