Solved

CCS fonts and smooth text

Posted on 2006-11-25
5
735 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Not seen Link button 5 54
Looking for magnifying glass wingding font 3 18
Changing Color of Page Section 4 23
Customizing jQuery UI Accordion CSS 3 28
CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

791 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