473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Jul 20 '05 #1
2 2714
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: chokky | last post by:
I'm using the mail($MailTo, $Subject, $Body, $headers) function to send out plain text emails, with the message/body being entered via a form. When the email arrives, the message is displayed as a...
1
by: Sparhawk | last post by:
Hi, I want to integrate a code beautifier for C++ in the development process of my company. There are many beautifiers around which would meet our formatting requirements (SourceFormatX,...
4
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary...
2
by: Mike | last post by:
I need my textbox to work more smoothly with respect to line breaks. When I have data pulled from the database into a textbox there are hard line breaks at the end of each line (by definition how...
4
by: News | last post by:
Hi Everyone, The attached code creates client connections to websphere queue managers and then processes an inquiry against them. The program functions when it gets options from the command...
5
by: joelbyrd | last post by:
Didn't know exactly where to post this, but: How do I get line breaks in a textarea? I'm pulling text from a database, and this text definately has line breaks in it, because I replaced all the...
6
by: Markus Ernst | last post by:
Hi Searching for a possibility to display some text with preserved white space and line breaks, but with long lines being wrapped, I found this CSS declaration, which I found helpful: pre {...
56
by: Ed Jay | last post by:
I note in an Eric Meyers book that he expresses one goal of using CSS is to eliminate all <brtags. Why? -- Ed Jay (remove 'M' to respond by email)
5
jmitchell
by: jmitchell | last post by:
I've been trying to work out this very simple thing for hours now and I wonder if you can help. My form submits the value of textarea, then takes the value and emails it in a plaintext email. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.