If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Help with CSS Formatting

Hi folks...

Feel a bit stupid about posting this, as I can usually nut things out, but not this one.
I have a module which displays the image untitled-1.jpg in the attached zip file (without the red lines & arrows of course).
I want it to display the image untitled-2.jpg.
I have attached the code in the file zip file, and also below:

I would be greatly indebted to anyone who can throw some light on this for me.... and again... apologies for my ignorance!!

Had to do some guessing to try to determine which PHP values might hold. The HTML code (browser "view source") would have been better than the PHP source, as it would have shown what the rendered code actually is.

I think

Code:

<br style="clear:both" />

is too high in your code. It appears to be clearing the float before the temperature is printed. Try removing it or placing it to below the temperature and see what happens.

The temperature line itself may need to be put into a span tag instead of p. But that would depend on the class spw_current_temp definition applied to the tag.

I used this as a basis, and fiddled around a bit more, and eventually got it to work... not exactly the way I wanted it, but acceptable.
Thanks a million again.

Mike

Originally Posted by Will Bontrager

Had to do some guessing to try to determine which PHP values might hold. The HTML code (browser "view source") would have been better than the PHP source, as it would have shown what the rendered code actually is.

I think

Code:

<br style="clear:both" />

is too high in your code. It appears to be clearing the float before the temperature is printed. Try removing it or placing it to below the temperature and see what happens.

The temperature line itself may need to be put into a span tag instead of p. But that would depend on the class spw_current_temp definition applied to the tag.