Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Blanks or hidden words to fill the space

Reply
Thread Tools

Blanks or hidden words to fill the space

 
 
John
Guest
Posts: n/a
 
      08-29-2006
Hello all,

Was wondering how to best tweak something on my webpage.

If you look at the source code for
http://www.lakecountycfc.org/news/index.htm, since the left column is so
long, I had to put the dreaded <p>&nbsp</p> tags in there on the right hand
column to fill up the space.

Is it better to do a bunch of <p>&nbsp</p> tags, or one <p></p> with a bunch
of lorem ipsum text in it equal to the background color?

I have tried several of the methods that balance the columns, but when I
throw the outset borders around each div (I like that look), the
bordered-boxes do not align.

So there is a bunch of blank lines I need to throw into the code to balance
things out. What is the best/approved way to fill up space?

VR/

John


 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      08-29-2006

John wrote:

> since the left column is so
> long, I had to put the dreaded <p>&nbsp</p> tags in there on the right hand
> column to fill up the space.


No you didn't. You're starting with a fundamental misunderstanding,
then asking us for details about how best to implement a basically
flawed idea.

Why do you need to add bogus content? What's the problem with one
column being longer than the other?

If you mean that you want the columns to always look the same height,
then there are techniques to do that. One obvious one is to use a
<table> -- if you're insistent on "things next to each other" being the
same height, then you're implicitly calling for table-style rendering
and you're better off being honest and up-front about it.

There are also ways to do it purely with CSS, but really I'd want wider
browser support for max-height before I went down that route. OTOH,
it's only cosmetic if it isn't supported, so why not?

Best of all is to use something other than HTML that really does
support this style of column layout and page flow (XSL:FO can do it
easily, if you wanted PDF output) -- but these are obviously
impractical for the Web.

Putting empty padding in there is _never_ a good idea.

> Is it better to do a bunch of <p>&nbsp</p> tags, or one <p></p> with a bunch
> of lorem ipsum text in it equal to the background color?


I don't know. Is it better to bang your head on the wall, or on the
floor?

 
Reply With Quote
 
 
 
 
Harlan Messinger
Guest
Posts: n/a
 
      08-30-2006
John wrote:
> Hello all,
>
> Was wondering how to best tweak something on my webpage.
>
> If you look at the source code for
> http://www.lakecountycfc.org/news/index.htm, since the left column is so
> long, I had to put the dreaded <p>&nbsp</p> tags in there on the right hand
> column to fill up the space.
>
> Is it better to do a bunch of <p>&nbsp</p> tags, or one <p></p> with a bunch
> of lorem ipsum text in it equal to the background color?


Neither. What you're missing is the CSS "clear" property, which causes
an element to which it applies to drop below any currently outstanding
floated elements.

<p clear="both"><b>Need Help Viewing ...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form/Template Fill-in the blanks allan Python 1 07-27-2009 02:32 PM
Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok?? Christian Seberino Python 21 10-27-2003 04:20 PM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-24-2003 11:15 AM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-23-2003 07:07 AM
Stack space, global space, heap space Shuo Xiang C Programming 10 07-11-2003 07:30 PM



Advertisments