Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 avoiding line break in heading styles, how?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

paco
Junior Member

Spain
187 Posts

Posted - 05 June 2001 :  11:52:49  Show Profile
How can I avoid having a break when I use headers (HTML tags <H*>)? Is there any way to prevent this?

Thanks,

Paco


redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 June 2001 :  12:56:21  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
sorry i dont understand, can you explain a little more?

Brad
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 05 June 2001 :  15:11:52  Show Profile  Visit tilttek's Homepage
quote:

How can I avoid having a break when I use headers (HTML tags <H*>)? Is there any way to prevent this?



You mean someting like:

 <HT><NOBR>Very Very Very Very Long Title That will not break???</NOBR></HT> 


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 06 June 2001 :  03:39:05  Show Profile
When you put something like:

a <h1> b </h1> c

you get

a
b
c

in three lines and I want to get

a b c in one single line.

This may look like I want to do something strange, but I'm using a program that only allows me to use styles for headers 1 to 6.

Thanks,

Paco

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 06 June 2001 :  09:03:54  Show Profile  Visit tilttek's Homepage
quote:

When you put something like:
a <h1> b </h1> c
you get
a
b
c
in three lines and I want to get
a b c in one single line.



If you whan to use style use SPAN instead... Header are for header, not to change look of your text. It have a meaning, nut only someting for style.


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 06 June 2001 :  09:14:14  Show Profile
I know this is not the usual thing to do and that I should use something like span to format text. But I need to format headers using css. The problem is:

- I'm using a program that pickes styles from a css file and lets users choose among a list of styles AND ONLY those listed.

- BUT it only picks header styles 1 to 6 and bodytext so If I can format this header styles my users won't need to use any other style.

- The program is a comercial one so we can not change the code.

I'm sure this is a really special case

Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 06 June 2001 :  14:36:25  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
There's no real way to do what you are talking about.

The only kludge way I know of to do something that will look similar is by forcing font changes while staying within a <Hn>. For instance:
<H1><font size=1>a</font>b<font size=1>c</font></H1>


Also, you can do other stuff (get rid of the bold) with font style syntax.

But that's not going to fit well with your CSS.

-Dan



Edited by - Dan Martin on 06 June 2001 14:39:01
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 06 June 2001 :  15:19:09  Show Profile
quote:

- I'm using a program that pickes styles from a css file and lets users choose among a list of styles AND ONLY those listed.



So can you edit that css file and add a new style?

How 'bout this:

Format that line as it's own paragraph - so you get the before and after spacing like you would with the <h1> tag.

Then go in and select that letter/word that you want to make bigger, select font size of 6 and bold it. That should get you the same look.

The Writer Community

"Do not go where the path may lead, go instead where there is no path and leave a trail."

-Ralph Waldo Emerson
Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 07 June 2001 :  03:45:14  Show Profile
I'll try to explain it better.

I'm using a content management program were I have some users that add content. It is based on templates were I specify were they can add content. This way they can not modify the design of the page, they can only modify the content part. To accomplish this the program shows some boxes (called placeholders) were they can add content. They can only put things inside this boxes. I can configure this boxes to control what they can put in, like if they are allowed to put images, links, and some more options. One of the options is to only allow my users to use my styles instead of changing the text style at will. I can add as many styles as I want and I can use them on my pages (hardcoded) BUT my users can only choose among those that appear in a drop down in the mentioned boxes. And this program will only show headers 1 to 6 and bodytext. So if I limit their text formatting capabilities to only choose between the ones available in the dropdown they only have headers available. That wouldn't be so bad if I could prevent the line breaks as I could use these header styles as regular styles and it would just be a matter of name.

I hope you know understand my situation. I don't want to allow them format text at will, but if I can not solve this I'll have to allow them do it.

That's why the solution must be inside a style as I don't want to go through the code of the pages and fix it. They should select a style (say H4) and they would get the correct font, size, color etc and NO linebreaks. They don't know any HTML so they don't care about the name of the style and I would act as I don't see it.

Regards,

Paco

Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 07 June 2001 :  10:27:58  Show Profile
Anyone ?

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 07 June 2001 :  12:06:26  Show Profile  Visit tilttek's Homepage
quote:

Anyone ?



I think H? have a line break by default... But I'll try tonight to find something!


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 07 June 2001 :  12:06:27  Show Profile  Visit tilttek's Homepage
quote:

Anyone ?



I think H? have a line break by default... But I'll try tonight to find something!


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 11 June 2001 :  04:38:34  Show Profile
Somebody sugested this approach and it seems to work. At least in IE 5.5 and NS 6.01. NS 4.75 puts 'ab' in one line and 'c' in another one.

Is there any better way? , more stable?

<HTML>
<HEAD>
<style type="text/css">
<!--
h1 { display: inline }
-->
</style>
</HEAD>
<BODY>

a<h1>b</h1>c

</BODY>
</HTML>

Regards,

Paco

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  09:13:39  Show Profile  Visit tilttek's Homepage
quote:

Somebody sugested this approach and it seems to work. At least in IE 5.5 and NS 6.01. NS 4.75 puts 'ab' in one line and 'c' in another one.



I don't see other way, cause NS don't have a complete support of style.


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07