![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
#12
| |||
| |||
|
|
The url again is http://geocities.com/terrance.murray/veggies |
#13
| |||
| |||
|
|
Hi again. Still have the problem where the text does not start at the same level as the top of the image in IE. It does show properly in Firefox and Netscape. |
#14
| |||
| |||
|
|
Terry wrote: Hi again. Still have the problem where the text does not start at the same level as the top of the image in IE. It does show properly in Firefox and Netscape. When I first looked at the source, I found the method for 'newsitems' to be awkward and overly complex. I tried to fathom where IE could be getting the extra white space from. It appears to be an unalterable white space for a List since I could not compensate. When reaching a deadlock such as this look for an alternate method. As the saying goes, "there's more than one way to skin a cat". I love the KISS method. I would not use List for those 'newsitems' especially since different browsers handle Lists differently. I would simply use a DIV and place the images and texts directly inside it. In order to give each individual 'newsitem' a different background color alternating pink/purple, place each into different DIVs, each having a different class. This works fine for all browsers. You may also find that you can eliminate one or two DIVs such as DIV.leftpadding. -- Gus |
#15
| |||
| |||
|
|
Terry wrote: I am still hoping that someone can address the problem which is text which is part of an unordered list is not aligning itself properly against a left floated image. It does what it was designed to do on Firefox and Netscape. The way a float works is that subsequent text shrinkwraps around the float. You see this behavior clearly on IE. It also happens on Firefox, etc. except that the text is not sufficiently long enough to clear the image. Increase the text size by one or more lines and you will see it also shrinkwrap. In order to *not* have the text shrinkwrap around the image, simply apply to the text a margin value which is wider than the image width and the text will keep within the margin. |
#16
| ||||
| ||||
|
|
So if understand you correctly create a container div for each news item. In the container div place two more divs - one for the image and one for the text. I guess I should then float the div containing the image left and make sure that the margin of the div containing the text is greater than the width of the div containing the image. Do I have it right? |
|
I think someone else suggested that instead of using float that I make my text div display:inline and give my image the align attribute. I thought,however, that the align attribute is deprecated. |
|
If you understand what was suggested in the other method could you please explain it to me. |
|
My website address is http://terry.atwebpages.com |
#17
| |||
| |||
|
|
I think someone else suggested that instead of using float that I make my text div display:inline and give my image the align attribute. I thought,however, that the align attribute is deprecated. text-align is what is used for "inline" elements. margin-left and/or margin-right is used for block elements. If you understand what was suggested in the other method could you please explain it to me. I'm not sure, but I believe that the intent was to change the <p element from Block to Inline. It won't work as desired, since the text will then align to the bottom of the image - img is an inline element and will take text-align no problem, in fact, it has a default of text-align:left (for LTR). |
#18
| |||
| |||
|
|
I think I am going to try your method now. |
![]() |
| Thread Tools | |
| Display Modes | |
| |