By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,395 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,395 IT Pros & Developers. It's quick & easy.

How to eliminate the line breaks that occur with headers

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"John Bowling" <jo*****************@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
Jul 20 '05 #2

P: n/a
John Bowling wrote:
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

Have you tried using div or iframes in css?
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.