M
Mike Barnard
Hi again.
I KNOW this is one of the most basic things in the book, but its not
working so I'm making a fool of myself in public again.
www.thermachek.com/temp/
For a footer I have a div.
Within the div I have three <p> elements. The first has no id and it
displays with the divs styling within the div on screen.
The other two p's have id's to enable css on them. They are styled to
float left and right, (and I have coloured them purely to prove the
css is being actioned).
They float and are coloured, so the id's are OK, but they float AFTER
the div body instead of within it. I don't understand.
I *THINK* the flow should be..
1. Create box on the screen of a colour/size as described by the div.
OK.
2. Create a <p> of text as the content of the div element and position
it within the div. OK.
3. Create a <p> of text as the content of the div element and float it
left [within the element]. FAILS.
4. ditto right. FAILS.
OK, what basic mistake am I making please? I have googled for element
within div and the code I've seen looks similar.
As usual, my thanks to you for your time.
Mike.
I KNOW this is one of the most basic things in the book, but its not
working so I'm making a fool of myself in public again.
www.thermachek.com/temp/
For a footer I have a div.
Within the div I have three <p> elements. The first has no id and it
displays with the divs styling within the div on screen.
The other two p's have id's to enable css on them. They are styled to
float left and right, (and I have coloured them purely to prove the
css is being actioned).
They float and are coloured, so the id's are OK, but they float AFTER
the div body instead of within it. I don't understand.
I *THINK* the flow should be..
1. Create box on the screen of a colour/size as described by the div.
OK.
2. Create a <p> of text as the content of the div element and position
it within the div. OK.
3. Create a <p> of text as the content of the div element and float it
left [within the element]. FAILS.
4. ditto right. FAILS.
OK, what basic mistake am I making please? I have googled for element
within div and the code I've seen looks similar.
As usual, my thanks to you for your time.
Mike.