Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:25 PM
John Bowling
Guest
 
Posts: n/a
Default How to eliminate the line breaks that occur with headers

Everywhere I have used <h#> ... </h#>, with or without a class=.. I get an
effective double line break, with or without CSS.

What I want to do is to switch text colors, size, and positioning (left,
center, right) and keep the text on the same line (unless I put in a <br>
intentionally).

Sometimes I want to do something like this:

Left text centered text right text.

on one line, and have them maintain their relative positions regardless of
screen or window sizes without using manual positioning.

So far, the only way I've found for reliable positioning is with tables (3
wide for the above) and the only way to change color or other adjustments is
to make adjustments in line with the text.

Why bother with a separate CSS file when you have to do the much of the
styling embedded in the HTML? And how do you easily maintain it over the
entire site with constant local adjustments?

What I've used to get around this problem is to import a javascript file
with several defined JS routines writing out HTML with styling embedded.
Not anywhere near as clean and easy as CSS, but I can at least adjust the
entire site by changing one location.

Thanks, John


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/2004


  #2  
Old July 20th, 2005, 10:25 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: How to eliminate the line breaks that occur with headers

"John Bowling" <johnlb2002_TAKEOUT_@cox.net> wrote in message
news:lAFPb.7859$bg1.5217@fed1read05...
| Everywhere I have used <h#> ... </h#>, with or without a
class=.. I get an
| effective double line break, with or without CSS.

'double line break'??
Do you mean a large margin on the bottom?

It sounds to me that you have some
fundamental misunderstandings of
css, but it is hard to assess further
without an URL.

| What I want to do is to switch text colors, size, and
positioning (left,
| center, right) and keep the text on the same line (unless I put
in a <br>
| intentionally).

I use <br> only when I am really lazy,
it is generally better to declare the previous
item as display: block (with some possible
adjustments according to exact need)

| Sometimes I want to do something like this:
|
| Left text centered text right text.
|
| on one line, and have them maintain their relative positions
regardless of
| screen or window sizes without using manual positioning.

...hmmm. So if I make my UA thinner
than you determine I should be looking at
your site, I am going to have to scroll
sideways? Uggh! I'm outta' there!

css can do pretty much everything that I
believe you were alluding it could not,
if used properly.

Post an URL and have it decimated by
the experts. Painful, but valuable.

[invalid group 'alt.html.tags' removed]

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site


  #3  
Old July 20th, 2005, 10:31 PM
wayne
Guest
 
Posts: n/a
Default Re: How to eliminate the line breaks that occur with headers

John Bowling wrote:[color=blue]
> Everywhere I have used <h#> ... </h#>, with or without a class=.. I get an
> effective double line break, with or without CSS.
>
> What I want to do is to switch text colors, size, and positioning (left,
> center, right) and keep the text on the same line (unless I put in a <br>
> intentionally).
>
> Sometimes I want to do something like this:
>
> Left text centered text right text.
>
> on one line, and have them maintain their relative positions regardless of
> screen or window sizes without using manual positioning.
>
> So far, the only way I've found for reliable positioning is with tables (3
> wide for the above) and the only way to change color or other adjustments is
> to make adjustments in line with the text.
>
> Why bother with a separate CSS file when you have to do the much of the
> styling embedded in the HTML? And how do you easily maintain it over the
> entire site with constant local adjustments?
>
> What I've used to get around this problem is to import a javascript file
> with several defined JS routines writing out HTML with styling embedded.
> Not anywhere near as clean and easy as CSS, but I can at least adjust the
> entire site by changing one location.
>
> Thanks, John
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/2004
>
>[/color]
Have you tried using div or iframes in css?
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles