Reply
changing text with css
Old 11-13-2006, 03:35 AM changing text with css
Novice Talker

Posts: 9
Name: Emile
Hello all,

I hope you can help me out. I have made a text-based site. (http://www.newthinking.nl/) but I am not satisfied with the result. If you read the text of the pages, you have to go from the one end of the screen to the next. I want to shorten the length of the text to make it more readable. Say: from 0 - 100% to 20- 80%. Can this be done with css and how?

Thanks beforehand,
Fireworker is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 11-13-2006, 07:12 AM Re: changing text with css
chrishirst's Avatar
Super Moderator

Posts: 11,713
Location: Blackpool. UK
body {
padding:0 10%;
}
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2006, 09:37 AM Re: changing text with css
Novice Talker

Posts: 9
Name: Emile
I want to apply this to all pages on my website. I have created an mystyle-file that applies to all pages.
It is like this:
.text {
position: absolute;
left: 270px;
top: 120px;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 24px;
font-style: normal;
line-height: normal;
font-weight: bolder;
font-variant: normal;
text-transform: capitalize;

}
.image {
top: 15px;
position: absolute;

}
.line {
position: absolute;
top: 240px;
right: auto;
left: auto;
}

How can I apply the padding to all pages on my website?
Fireworker is offline
Reply With Quote
View Public Profile
 
Old 11-13-2006, 12:19 PM Re: changing text with css
chrishirst's Avatar
Super Moderator

Posts: 11,713
Location: Blackpool. UK
add the body style definition into the style sheet.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2006, 02:29 PM Re: changing text with css
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
You don't need to put font-style: normal or font-variant: normal, these are default values.
__________________
Tumblings.co.uk - Tumblog with thoughts, quotes, links, videos, images and my creations.
Opera Browser - The best free web browser.
Opera Dev Tools - Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 11-14-2006, 02:39 AM Re: changing text with css
Novice Talker

Posts: 9
Name: Emile
ty, chrishirst, it works.
Fireworker is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to changing text with css
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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.12747 seconds with 13 queries