Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Increase margin width of text

Status
Not open for further replies.

jj1234

MIS
Jan 27, 2006
46
GB
I would like to move the text to the right slight on the home page so that the words "twenty" and "forty" are not on a new line but on the same line as the current sentence.

http://clubamigos.port5.com

Any help would be appreciated.
 
Number of methods.

Make the "page" wider.

Make the type smaller.

My favourite:
Don't worry about it. Say you manage to get type on one line, what happens if I enlarge my font 1 or 2 clicks?

CSS is not currently a typographically strong medium. It's getting better, there are selectors that willhelp with things like this. As yet, though, they are not widely supported.

Foamcow Heavy Industries - Web design and ranting
Buy Languedoc wines in the UK
 
Thanks for that, l will have to live with it , as neither method is not really suitable.
 
And primarily, don't put every word in a separate paragraph. If you just put all the text in one or two paragraphs, you should be ok. Do you really understand what paragraphs are?
 
Reduce the font of the whole sentence?

OK... how about you remove the words from their own <p> tag... at least then you have a chance of getting it to work.

You can't expect the kind of control you are talking about on the web... well... you can expect it... but you will be disappointed (especially when you view it on Firefox, Opera, Netscape, Mozilla or Safari and change the text size).

The only way to guarantee it will never "roll over" to the next line is to do all the text as an image [smile]

That's why we talk about "liquid designs" or "dynamic designs" - designs that gracefully handle user resizing of the browser and font size.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
jj1234

If you really wanted to do it this would work:
Code:
<html><body>
<pre style="font-family:arial; font-size:9px">
A friendly and welcoming social club based in Southampton, UK which welcomes anyone from the ages of twenty to forty.
The idea of the club came about as a way for people to participate in exciting activities and make new friends.
We meet every Thursday at Bar Risa in Above Bar Street, Southampton at around 8.30pm.
</pre>
</body></html>

Clive
 
That works great thanks very much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top