On Thu, 16 Sep 2004 17:08:06 GMT, red <gr****@reenie.org> wrote:
I'm using:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Excellent.
I tried using <br /> but it doesn't seem to make any difference.
Don't use that, it's HTML, use <br>
Actually, there is somewhat of a line break- it just doesn't really go
to a new line. Here's the page I'm working on:
http://rainbowfamily.info/bookmarks
Near the bottom is "red's links" enclosed in a span with a red border
.... which is floated. Neglected to notice that?
After that is "new menu name" which is supossed to be on a new line.
There's 2 <br />s which do have some effect- notice the "new menu name"
is lower, but its not to the left lile anew line should be. How do I get
"new menu name" to be on a new line ? I tried putting it all in divs but
that didn't make any difference. The divs refused to go onto new lines.
Right. Floats move the content to the left, and the following content
starts at the float's vertical height. But the content cannot overlap the
float, so your content after the float cannot reach the left margin.
Frankly, don't see why the box is floated at all. I'd just remove the
float style. Or, if there's a reason it's floated that I can't see, style
the content you want under the float for sure with clear: left; - but the
first solution is probably what you want.
This is weird HTML, by the way.
You use one h4 but no h1, h2 or h3. And this h4 isn't even a heading.
Things that ARE headings are styled.
You have used almost only inline elements, very few block. All of your
br's would be unnecessary if you used divs. Or better yet, markup
paragraphs between p tags and don't force line breaks.