![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a list that appears substantially like this: [icon1] myfile1 [icon2] myfile2 [icon3] myfile3 [icon4] myfile4 [icon5] myfile5 However, many of the icons (all 18-point high) are not the same width resulting in a list that looks like this: [icon1] myfile1 [i c o n 2] myfile2 [icon3] myfile3 [i c o n 4] myfile4 [icon5] myfile5 How can I use CSS, if possible, to make all the text on the right of the icons appear justified so that the icons all take up the same amount of horizontal space? I've tried this: img.icon_left { float: left; margin: 15px; } img.icon_right { float: right; margin: 15px; } |
#3
| |||
| |||
|
|
I have a list that appears substantially like this: [icon1] myfile1 [icon2] myfile2 [icon3] myfile3 [icon4] myfile4 [icon5] myfile5 However, many of the icons (all 18-point high) are not the same width resulting in a list that looks like this: [icon1] myfile1 [i c o n 2] myfile2 [icon3] myfile3 [i c o n 4] myfile4 [icon5] myfile5 How can I use CSS, if possible, to make all the text on the right of the icons appear justified so that the icons all take up the same amount of horizontal space? I've tried this: img.icon_left { float: left; margin: 15px; } img.icon_right { float: right; margin: 15px; } with "class=" with "<img " but got poor results. I'm not an expert at CSS but have used it successfully in many ways. I could also do HTML tables but would rather do it with CSS. |
#4
| |||
| |||
|
|
On 2008-12-08, laoming... (AT) gmail (DOT) com <laoming... (AT) gmail (DOT) com> wrote: I have a list that appears substantially like this: [icon1] myfile1 [icon2] myfile2 [icon3] myfile3 [icon4] myfile4 [icon5] myfile5 However, many of the icons (all 18-point high) are not the same width resulting in a list that looks like this: [icon1] myfile1 [i c o n 2] myfile2 [icon3] myfile3 [i *c *o *n *4] myfile4 [icon5] myfile5 How can I use CSS, *if possible, to make all the text on the right of the icons appear justified so that the icons all take up the same amount of horizontal space? I've tried this: img.icon_left *{ float: left; *margin: 15px; } img.icon_right { float: right; margin: 15px; } Set width on those floats instead of margin. |
#5
| |||
| |||
|
|
[icon1] myfile1 [i c o n 2] myfile2 [icon3] myfile3 How can I use CSS, if possible, to make all the text on the right of the icons appear justified so that the icons all take up the same amount of horizontal space? |
#6
| |||
| |||
|
|
On Dec 8, 12:15*am, Ben C <spams... (AT) spam (DOT) eggs> wrote: On 2008-12-08, laoming... (AT) gmail (DOT) com <laoming... (AT) gmail (DOT) com> wrote: [big snip] How can I use CSS, *if possible, to make all the text on the right of the icons appear justified so that the icons all take up the same amount of horizontal space? I've tried this: img.icon_left *{ float: left; *margin: 15px; } img.icon_right { float: right; margin: 15px; } Set width on those floats instead of margin. Thanks but that makes the image wider (i.e. kills the aspect ratio). The space between the left margin and the text needs to be widened so probably using "class=" with "<img" is the wrong approach? |
#7
| |||
| |||
|
|
On Dec 8, 12:15*am, Ben C <spams... (AT) spam (DOT) eggs> wrote: On 2008-12-08, laoming... (AT) gmail (DOT) com <laoming... (AT) gmail (DOT) com> wrote: I have a list that appears substantially like this: [icon1] myfile1 [icon2] myfile2 [icon3] myfile3 [icon4] myfile4 [icon5] myfile5 However, many of the icons (all 18-point high) are not the same width resulting in a list that looks like this: [icon1] myfile1 [i c o n 2] myfile2 [icon3] myfile3 [i *c *o *n *4] myfile4 [icon5] myfile5 How can I use CSS, *if possible, to make all the text on the right of the icons appear justified so that the icons all take up the same amount of horizontal space? I've tried this: img.icon_left *{ float: left; *margin: 15px; } img.icon_right { float: right; margin: 15px; } Set width on those floats instead of margin. Thanks but that makes the image wider (i.e. kills the aspect ratio). The space between the left margin and the text needs to be widened so probably using "class=" with "<img" is the wrong approach? |
#8
| |||
| |||
|
|
In article |
#9
| |||
| |||
|
|
mmm... was using aeiou.org newsserver yesterday for posts and I posted on this one, the Optus newserver was not working (at least on my machine). I sometimes wonder if the newserver one uses to post affects who can see it via other newservers... |
#10
| |||
| |||
|
|
On Monday 08 December 2008 22:28, dorayme wrote: mmm... was using aeiou.org newsserver yesterday for posts and I posted on this one, the Optus newserver was not working (at least on my machine). I sometimes wonder if the newserver one uses to post affects who can see it via other newservers... I thought for a while that my ISP's news server wasn't showing posts from news.individual.net, but it turned out that Konqueror wasn't showing posts made with MacSOUP. There just happened to be a strong correlation, on the newsgroup I noticed it on, between using MacSOUP and posting from individual.net. In other words, could it be the posting agent rather than the news server? |
![]() |
| Thread Tools | |
| Display Modes | |
| |