Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
justification of headlines
Old 03-06-2006, 08:20 PM justification of headlines
Novice Talker

Posts: 12
Trades: 0
justification of headlines on homepage

if a headline on the homepage wraps, the first letter of the second line should line up with the first letter of the first line, not with the hypen

Should look like number 2 below:

1.
-Let's say
something.


2.
-Let's say
something.

Please help...
Bel_Web is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-07-2006, 11:01 AM Re: justification of headlines
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
A browser can't tell the difference between a letter, number or non-html symbol in it's h tags. Of course it's going to start new line at the beginning of the next line regardless of what you have as the first character on the previous one.

Why do you think that if the first char of the h tag is a hyphen that the next line will align to the following letter?
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 03-07-2006, 01:23 PM Re: justification of headlines
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML simply doesn't work like that, as you can see in your example both look exactly alike.
using
Code:
<hn style="text-align:justify;">
may get you closer.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-07-2006, 02:03 PM Re: justification of headlines
Novice Talker

Posts: 12
Trades: 0
Hi guys,

I would like to inform the browser that when there is a hyphen the second line should have 5 pixels from the margin...
Bel_Web is offline
Reply With Quote
View Public Profile
 
Old 03-07-2006, 02:05 PM Re: justification of headlines
Novice Talker

Posts: 12
Trades: 0
Quote:
Originally Posted by metho
A browser can't tell the difference between a letter, number or non-html symbol in it's h tags. Of course it's going to start new line at the beginning of the next line regardless of what you have as the first character on the previous one.

Why do you think that if the first char of the h tag is a hyphen that the next line will align to the following letter?
"That's why I am asking... I am trying to see if it is possible..."
Bel_Web is offline
Reply With Quote
View Public Profile
 
Old 03-07-2006, 02:36 PM Re: justification of headlines
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by Bel_Web
Hi guys,

I would like to inform the browser that when there is a hyphen the second line should have 5 pixels from the margin...
You can't!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-07-2006, 02:43 PM Re: justification of headlines
Novice Talker

Posts: 12
Trades: 0
That's not good... Thank you
Bel_Web is offline
Reply With Quote
View Public Profile
 
Old 03-07-2006, 02:44 PM Re: justification of headlines
Novice Talker

Posts: 12
Trades: 0
What is the code to add 5px in the second line? ( that is the question)
Bel_Web is offline
Reply With Quote
View Public Profile
 
Old 03-07-2006, 03:55 PM Re: justification of headlines
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There isn't any CSS code to do that.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-07-2006, 06:19 PM Re: justification of headlines
Novice Talker

Posts: 12
Trades: 0
awwwwwwwwwwwww....
that's sad

thank you so much, I guess I have to build a table...
Bel_Web is offline
Reply With Quote
View Public Profile
 
Old 03-07-2006, 06:27 PM Re: justification of headlines
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and what difference would that make ???
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-08-2006, 05:40 PM Re: justification of headlines
Novice Talker

Posts: 12
Trades: 0
The hyphen will go in a cell and the text will not wrap, because will be in a different one.
But I got this one here that I will try:

#Layer1 {
position:absolute;
left:658px;
top:59px;
width:65px;
height:43px;
z-index:2;
margin-left: 5px;
}
Bel_Web is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to justification of headlines
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40674 seconds with 12 queries