• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • Last Modified:

How to find more like this

Hi There,
I have been picking apart sites to see how pages are put together and came across this tag, but I can not find it's use in any of my books.  I can however guess it's purpose from the way the page layout appears on the screen, the next line drops down below the picture to the left.

Here is the code: <br clear=all>
Where can I find more things like this, ie not in the reference books I own.  I know there are a lot of tricks like this out there...

davlun
0
davlun20080
Asked:
davlun20080
  • 2
  • 2
  • 2
1 Solution
 
cybernieticCommented:
The tags clear are used when you want text to continue down the side of an image as it would in a book, not have just one line of text next to it.
Note: This is supported by most browsers, but not all. Your layout will not appear the way you plan, but the content will not be affected.

The trick is to set your images with either ALIGN="LEFT" or ALIGN="RIGHT". In either situation, the image comes before the text! Be certain to always end with the proper <BR> tag- even if a <P> is after the text.

<BR CLEAR="LEFT"> is used after the text in a left aligned image to clear the margin back.
<BR CLEAR="RIGHT"> is used after the text in a right aligned image.
<BR CLEAR="ALL"> takes care of all situations, feel free to use this one and not worry about it!
0
 
cybernieticCommented:
0
 
TTomCommented:
davlun20080:

I suspect you are working with HTML 3.2 references.  Try an HTML 4.0 ref.  Might have a lot of new little tricks.  Unfortunately, many not supported yet.

I'm not totally sure this is the case, but I have seen a number of things I thought were new in the recent past, and they pretty much came from 4.0 refs.

FWIW, I have never seen the "clear" designation either.

Another cute one I learned (although I think this one is 3.2 or earlier) is that, if you specify an alignment for a table, e.g., <table align=left>, you can get text to "wrap" alongside the table.  Only works for left and right, and the alignment MUST be specified.  If no alignment is specified or the alignment is center, the text drops below the table.

Tom
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
davlun20080Author Commented:
cybernietic,
thanks for the link and the explanation of the the br tag, however ttom's answer is more in line with what I was looking for since he was correct, the tags are part of the html4 specification.

thanks again,
davlun
0
 
davlun20080Author Commented:
Thanks to all,
davlun
0
 
TTomCommented:
Most welcome!

Tom
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now