HTML Lists |
Author: |
Message: |
Thor
Veteran Member
Awwwwwwww.
Posts: 1118 Reputation: 42
32 / – /
Joined: May 2006
|
RE: HTML Lists
quote: Originally posted by Plik
quote: Originally posted by methos
quote: Originally posted by Plik
quote: Originally posted by methos
i sorted it for him... the text was centre aligned so the list was centered as well, and because the lines were different lengths they werent aligned ^_^ solution: create a narrower div, left align the text
Just out of interest, why did you need a div?
because he wanted the list centered but aligned, ie, he wanted the list centered somewhere in the middle but still aligned with each other... a div is just the easiest way of doing it, containing the list within a narrower div, centering the div then left aligning it is the easiest way....
Couldn't you center the ol, and setting the text-align to left?
Nothing much, but you should always work for as little markup as is necessary
Then he would have to use an inline style, but Mozilla doesn't support all the CSS in inline tags... I've had problems with diffrent objects. But I think that a div would be the best thing. Not an line style.
|
|
07-12-2006 06:47 PM |
|
|
welshboy222
Full Member
Posts: 325 Reputation: 4
29 / / –
Joined: Apr 2006
Status: Away
|
O.P. RE: HTML Lists
I have IE just to let ya know.
If the worst comes to the worst eat a cake makes you feel better!
|
|
07-12-2006 06:49 PM |
|
|
stoshrocket
Senior Member
formerly methos
Posts: 748 Reputation: 31
34 / /
Joined: Aug 2005
|
RE: HTML Lists
quote: Originally posted by welshboy222
I have IE just to let ya know.
lol... we've got all the html freaks going on about compatability... Nitro just means that using the method Plik said might not show properly on some browsers... so if someone with Firefox waned to view your page it might not display properly.. </explanation>
|
|
07-12-2006 06:56 PM |
|
|
Thor
Veteran Member
Awwwwwwww.
Posts: 1118 Reputation: 42
32 / – /
Joined: May 2006
|
RE: HTML Lists
quote: Originally posted by welshboy222
I have IE just to let ya know.
Even though you have IE doesn't mean that the visitor will have IE. IE does not support web standards. Mozilla supports it, but Opera is best there, 'cause it even passes the Acid 2 test.
Always think about how it will be for your visitors.
|
|
07-12-2006 06:57 PM |
|
|
Plik
Veteran Member
Posts: 1489 Reputation: 46
35 / / –
Joined: Jun 2004
|
RE: HTML Lists
quote: Originally posted by Nitrolinken
quote: Originally posted by Plik
quote: Originally posted by methos
quote: Originally posted by Plik
quote: Originally posted by methos
i sorted it for him... the text was centre aligned so the list was centered as well, and because the lines were different lengths they werent aligned ^_^ solution: create a narrower div, left align the text
Just out of interest, why did you need a div?
because he wanted the list centered but aligned, ie, he wanted the list centered somewhere in the middle but still aligned with each other... a div is just the easiest way of doing it, containing the list within a narrower div, centering the div then left aligning it is the easiest way....
Couldn't you center the ol, and setting the text-align to left?
Nothing much, but you should always work for as little markup as is necessary
Then he would have to use an inline style, but Mozilla doesn't support all the CSS in inline tags... I've had problems with diffrent objects. But I think that a div would be the best thing. Not an line style.
List elements are block level.......................................
|
|
07-12-2006 06:57 PM |
|
|
Thor
Veteran Member
Awwwwwwww.
Posts: 1118 Reputation: 42
32 / – /
Joined: May 2006
|
RE: HTML Lists
quote: Originally posted by Plik
List elements are block level.......................................
I know that.
|
|
07-12-2006 06:58 PM |
|
|
Plik
Veteran Member
Posts: 1489 Reputation: 46
35 / / –
Joined: Jun 2004
|
RE: HTML Lists
quote: Originally posted by Nitrolinken
quote: Originally posted by Plik
List elements are block level.......................................
I know that.
Then what does:
quote: Originally posted by Nitrolinken
Then he would have to use an inline style, but Mozilla doesn't support all the CSS in inline tags
mean?
I've never had issues with positioning ul's and ol's the same way you would a div, because they are both block level. The only issue is that lists generally have padding and margins by default, which cause issues if you don't expect it.
|
|
07-12-2006 07:01 PM |
|
|
Thor
Veteran Member
Awwwwwwww.
Posts: 1118 Reputation: 42
32 / – /
Joined: May 2006
|
RE: HTML Lists
quote: Originally posted by Plik
quote: Originally posted by Nitrolinken
quote: Originally posted by Plik
List elements are block level.......................................
I know that.
Then what does:
quote: Originally posted by Nitrolinken
Then he would have to use an inline style, but Mozilla doesn't support all the CSS in inline tags
mean?
I've never had issues with positioning ul's and ol's the same way you would a div, because they are both block level. The only issue is that lists generally have padding and margins by default, which cause issues if you don't expect it.
Oh, well, I was trixing with inline style using the p tag, and firefox wouldnt' color my text, it wouldn't add the font either. And I didn't understand, but I kept on working with it. The site that I were doing tthe code, was a profile site, a norwegian service. In IE and Opera the site looked excatly as It should. I didn't want to use <font> tag, I don't like it. ( ) So I used the inline style, as I said, and the text looked not as it should, in Mozilla (I mean firefox).
That's what I meant.
|
|
07-12-2006 07:55 PM |
|
|
Pages: (5):
« First
«
1
2
3
4
[ 5 ]
Last »
|
|