|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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
__________________
"Hi I am _ from _ Marketing, and (7 minute basic description of SEO)"..."Thanks, but I was just hired to do that because I was #1 on Google for 6 years for the phrase: '**** OFF'" |
|
||||
|
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> HTML Code:
<p>Their price: <span class="linethrough">$18.88</span></p>
__________________
The best way to learn anything, is to question everything. Interestingly Average Security Blog Last edited by wige; 10-10-2008 at 05:43 PM. |
|
|||
|
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. |
|
|||
|
I've only ever used the srikethrough a couple of times for this - Arial worked fine, so far as I can remember.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Charcoal Line | WPW_Feedbot | Graphics & Design Discussion Forum | 0 | 02-22-2005 02:34 AM |
| Doing Line Art | WPW_Feedbot | Graphics & Design Discussion Forum | 0 | 01-31-2005 12:31 AM |
| looking for rainbow line | pause button | Graphics & Design Discussion Forum | 3 | 08-25-2004 10:02 AM |
| www.Line-Man.com | Slim Lineman | Submit Your Site For Review | 3 | 04-12-2004 12:47 PM |
| CSS Red Line Through? | ctfitch | Graphics & Design Discussion Forum | 14 | 03-05-2004 10:25 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |