Wrox Programmer Forums
|
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design by Richard York; ISBN: 9780764576423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2005, 09:12 PM
Registered User
 
Join Date: Aug 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic bolding causes surrounding text to move.

Hi again -

I have an issue now where I have a short, right-aligned text grouping at the bottom of my page which offers a copyright statement and a link to a privacy policy. in that order. (See http://linuxdev.outofchaos.com/hamiltondev). The privacy policy text becomes bold on mouseover which makes the text grow or shrink depending on the font, and when this occurs the copyright text before it shifts to the left or right as a result. I was able to get around this issue on the footer navigation by giving each menu option its own space to live in so that its metamorphosis doesn't affect anything else, but I am having difficulty with this bottom one because it is right-aligned. Anyway, I think I can get something similar to work, but it just seems that this should be handleable in CSS alot easier than having to supply a width to a container element. Is there some CSS definition that will allow text to expand into its own padding, for instance? Any ideas?

As a side-note, in scouring the web for a solution, I found that many authors simply swap to a more pronounced color on mouse-over to achieve a bold look without actually bolding. I suppose this method is so popular precisely due to the problem I'm having.
 
Old October 7th, 2005, 06:50 AM
Registered User
 
Join Date: Aug 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind - I ended up doing what I was trying to avoid...making a block element around the word to be bolded, just a bit bigger than the word to be bolded, so that the word can expand without adjusting other elements that are outside the block. Seems like alot to go through for this simple effect.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Bolding some record of report [Solved] Svenzardda Access VBA 4 July 18th, 2007 08:04 AM
Can't set text property of dynamic text box sreerajrs ASP.NET 1.0 and 1.1 Professional 1 May 31st, 2006 09:39 PM
Move focus to field without selecting text echovue Access VBA 1 April 12th, 2006 01:52 AM
loop values and text box values move mateenmohd Classic ASP Basics 2 April 5th, 2005 11:33 PM
Bolding threads bmains Forum and Wrox.com Feedback 0 February 3rd, 2005 12:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.