Solved

CCS fonts and smooth text

Posted on 2006-11-25
5
732 Views
Last Modified: 2013-12-03
Hi, is there anyway of using H1 with CSS and not have un-smooth text...The text look like pixel text, like when not adding a sharp, smooth effect to text in photoshop....I would rather try CSS than a graphic...:)
0
Comment
Question by:wood1e
5 Comments
 
LVL 30

Expert Comment

by:Steggs
ID: 18011332
Greetings wood1e,

There is no css property to control the smoothness of text.

One thing you can do is cover the h1 text with a graphic.

<h1><em></em>Title</h1>

h1
{position:relative;
width:585px;
height:105px;
overflow:hidden;
}
h1 em
{display:block;
width:585px;
height:105px;
background:url(image.jpg);
position:absolute;
top:0;
left:0;
}

Regards
0
 
LVL 30

Expert Comment

by:VirusMinus
ID: 18013217
This is the best solution available for smooth typography and use of non-standard fonts other than Arial, Verdana etc.

http://www.mikeindustries.com/sifr/

example usage:
0
 

Author Comment

by:wood1e
ID: 18013758
Hi have tried the background image and the text over the top....with veranda, but I can never align the text with the text of the graphic?
0
 
LVL 30

Accepted Solution

by:
Steggs earned 500 total points
ID: 18042302
Hello again,

The text is supposed to be covered by the graphic
0
 
LVL 16

Expert Comment

by:LeeKowalkowski
ID: 18145513
There's currently no supported CSS property for anti-aliasing fonts.  

In Windows, you can enable smooth fonts in the display properties ( http://www.worldstart.com/tips/tips.php/1213 ).  If your users have done this, they won't benefit very much from your efforts to smooth some of the text in your website on their behalf, because the text would have been smooth in the first place.  
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now