iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2008, 03:46 PM
flhu's Avatar
WebProWorld Member
 
Join Date: May 2008
Location: NY
Posts: 97
flhu RepRank 2
Default A Better line-through?

I'm working on a website, like a lot of websites, that has a line-through for the MSRP (retail price). I'm having a problem with the line-through over the number 8, sometimes causing it to look like the MSRP is less than our price.

Without the line-trough, I fear that it might confuse the user as to what the price is. I've thought about using a background-image to make the line darker and behind MSRP (in light blue), but this looks more like I am highlighting it.

I've tried to increase the font-weight, but this seems to also increase the line-through.

The fonts that I use throughout the site is "Verdana,Helvetica,Sans"... maybe a font with a rounder or higher "waist" for "8" would work? My design esthetic really wants me to keep the number of fonts used to a bare minimum.

Is there a way in css to change characteristics of the line-through: thickness, color, and/or position?

Thanks
__________________
I liken SEO to voodoo and make a sacrifice of rum and decapitate a chicken to Papa Legba, spirit of communications and crossroads, before every site launch.
Reply With Quote
  #2 (permalink)  
Old 10-10-2008, 06:40 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,629
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: A Better line-through?

The only workaround I can think of would be to use a fake line through. That is where you create a gif with a horizontal line and transparent background. The CSS would be as follows:

HTML Code:
<style>
.linethrough {
background: url(/linethrough.gif) repeat-x center left;
color: #000;
}
</style>
The HTML code would be the same as you are used to.

HTML Code:
<p>Their price: <span class="linethrough">$18.88</span></p>
You would need to create a stylesheet to display a normal linethrough if the document is printed, however, since the background image won't be printed. This method will allow you to control the size, position, thickness and color of the line. If you set the color to be lighter than the text, that should ensure the numbers can be read correctly.
__________________
The best way to learn anything, is to question everything.

Last edited by wige; 10-10-2008 at 06:43 PM.
Reply With Quote
  #3 (permalink)  
Old 10-10-2008, 08:34 PM
Web-Design-Guy's Avatar
WebProWorld Pro
 
Join Date: Jun 2008
Location: Perth, Western Australia
Posts: 110
Web-Design-Guy RepRank 1
Default Re: A Better line-through?

Good solution. I'd see how it looked as a diagonal or even a cross, handwriting-style, as it the price appears to be crossed-out...
Reply With Quote
  #4 (permalink)  
Old 10-10-2008, 09:20 PM
WebProWorld Pro
 
Join Date: Mar 2005
Posts: 119
subsystems RepRank 2
Default Re: A Better line-through?

I haven't messed with it but you may be able to use a non-linethrough font in say black for the price and a overlay a linethrough using css but instead of using a visable characer use something that will produce just the linethrough. Not sure if the nbsp will do it. Maybe the minus sign with a linethrough. You may have to go to a fixed width font for both the price and linethrough to get everything to line up nicely.
Example:
$88.00 in black
------ in red overlayed using css positioning.
Play with the colors. Not sure what would look best using this technique.
Haven't tried this approach but it should work fine.
Reply With Quote
  #5 (permalink)  
Old 10-10-2008, 10:57 PM
confettiguru's Avatar
WebProWorld Pro
 
Join Date: Apr 2008
Location: California
Posts: 119
confettiguru RepRank 3confettiguru RepRank 3
Default Re: A Better line-through?

I've found The best font to cure this is Georgia
__________________
www.chicoparty.com, www.partyconfetti.com
Female and SEO are not mutually exclusive
Reply With Quote
  #6 (permalink)  
Old 10-11-2008, 04:07 AM
WebProWorld Pro
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Posts: 121
cbosleeds RepRank 1
Default Re: A Better line-through?

I've only ever used the srikethrough a couple of times for this - Arial worked fine, so far as I can remember.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Charcoal Line WPW_Feedbot Graphics & Design Discussion Forum 0 02-22-2005 03:34 AM
Doing Line Art WPW_Feedbot Graphics & Design Discussion Forum 0 01-31-2005 01:31 AM
looking for rainbow line pause button Graphics & Design Discussion Forum 3 08-25-2004 11:02 AM
www.Line-Man.com Slim Lineman Submit Your Site For Review 3 04-12-2004 01:47 PM
CSS Red Line Through? ctfitch Graphics & Design Discussion Forum 14 03-05-2004 11:25 AM


All times are GMT -4. The time now is 03:03 AM.



Search Engine Optimization by vBSEO 3.3.0