Closed Thread Icon

Preserved Topic: Quick question about CSS Pages that link to <a href="https://ozoneasylum.com/backlink?for=18468" title="Pages that link to Preserved Topic: Quick question about CSS" rel="nofollow" >Preserved Topic: Quick question about CSS\

 
Author Thread
acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted posted 01-05-2002 21:40

When I use a style tag, H3 for instance, for some reason when I close that tag, it automatically creates something similar to 2 <br>'s.

For instance:

<h3>hello</h3>
<h3>hello</h3>
<h3>hello</h3>

would read like:

hello


hello


hello


wheras, I need it to look like:

hello
hello
hello

---------------------------
For this certain project i am working on, i HAVE to close the tags, so I have to use </h3>. Is there any way to get the desired text effect WITHOUT having to drop the </h3> ?

thanks... i know that was confusing

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 01-05-2002 21:57

Ya lost me, why are you using H3 tags ?
can you post the code your working with and explain better what you want to do......

AusRA
Paranoid (IV) Inmate

From: Ausra Island
Insane since: Nov 2001

posted posted 01-05-2002 22:03

<h1> through <H6> are headline tags, that's the effect you should get....
headlines are supposed to be seperated.... please explain more if you can....

acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted posted 01-05-2002 22:03

i was just using that as an example.

assuming that h3 was specified in a css file as follows:

H3{
font-size : 11px;
font-style :normal;
font-weight : bold;
color: #FFFFFF;
text-decoration: none;
font-family: Verdana,Arial,Sans-Serif;
}

and then I used the <h3>hello</h3> in an HTML document.

why does the </h3> make line breaks? I want to put text right next to or right below the word "hello". Currently, the any other text that i put after the </h3> is showing up a couple lines below the word. Understand?


edit: so ..... using something other than <h1-h6> would fix my problem?

[This message has been edited by acidbox (edited 01-05-2002).]

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 01-05-2002 22:10

I can't understand why you Must use <headline tags>

couldn't you use

<dl>
<dt> hello </dt>
<dt> hello </dt>

and just change the, "H3" reference in your style sheet to "dl" ?

edit-(I made exactly what you refered too, changed the "h3" reference to "dl" and it worked great, but if you must use h3 tags, i'm out of suggestions...)


[This message has been edited by Synthetic (edited 01-05-2002).]

acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted posted 01-05-2002 22:14

i understand that, but the whole thing is that i HAVE to use <h3></h3>.... i know it sounds stupid, but i have to. So I was just wondering if there was some way to eliminate that break at the end.

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 01-05-2002 22:17

So you must use them in seperate H3 tags, and you don't want any spaces in them... I'll check it out, but the main purpose of a headline tag is to be seperate from the rest.....

(edit= re phrased my statment)

[This message has been edited by Synthetic (edited 01-05-2002).]

AusRA
Paranoid (IV) Inmate

From: Ausra Island
Insane since: Nov 2001

posted posted 01-05-2002 22:28

Are the lines, together in the document? I mean do you need them in seperate H3 tags?

<h3> hello <br> hello </h3>

would give you

hello
hello

can you only use only 1 set of h3 tags?

acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted posted 01-05-2002 22:30

ya, they have to be in seperate H3 tags.. ie <h3>hello</h3><h3>hello</h3>

acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted posted 01-05-2002 22:42

Ausra, what do u mean "first set of h3 tags? If you have another idea, throw it out there and i'll see what ya mean.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 01-05-2002 22:44

Well, first ask yourself if you're using the H tags for their intended purpose, which is *headings*. If you're not, just use a span tag or something more appropriate to create the effect.

If you *are* using them for headings, and for some reason they are just headings without any content associated with them, then just add

margin-bottom:0px;
margin-top:0px;

and fiddle with the exact values (zero may be too extreme).

(If that doesn't do the trick, try also padding-top and padding-bottom, and line-height, and line-spacing.)

acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted posted 01-05-2002 22:56

Slime, that seems to work. I have to play with it to get it to look right, but I think I'm on the right track now. Thanks a lot. Thanks to everyone else for the effort too

Allewyn
Maniac (V) Mad Scientist

From: Solitary confinement
Insane since: Feb 2001

posted posted 01-05-2002 23:52

perhaps you could use the property line-height and specify how far apart the lines should be?

« BackwardsOnwards »

Show Forum Drop Down Menu