Topic: Spans (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 05-07-2004 12:26
As far as I know, Divs are almost identical to Spans except they default to having the max width, and they are block elements. code: ul.headLinks { This seems ok to me, here's the HTML code: <ul class="headLinks"> I got most of this code from A List Apart, when I run it the top padding doesn't come into effect, but the left and right does, any ideas what a solution might be? |
Nervous Wreck (II) Inmate From: |
posted 05-07-2004 22:20
I think the vertical padding on inline elements does not work the same as on block elements. Here is an article on Eric Meyer's website that, I believe, explains the situation. code: li.inline {
code: li.inline {
|
Maniac (V) Inmate From: under the bed |
posted 05-07-2004 23:09
There are no spans in your code |
Nervous Wreck (II) Inmate From: |
posted 05-10-2004 11:42
Thanks for the help guys, I've managed to get it working now with the above mentioned ideas. |
Nervous Wreck (II) Inmate From: |
posted 05-11-2004 12:57
I agree with DL-44. I'd go with option 2 as well. I only offered option 1 as an alternative since that directly addresses the shortcomings of the padding not working on inline elements. |