You are here: Re: Hide text with css « HTML « IT news, forums, messages
Re: Hide text with css

Posted by Jukka K. Korpela on 02/15/07 14:04

Scripsit J.O. Aho:

> Gin wrote:
>> Hi have a text that is showing on a web page (see below), that I
>> can't modify because is automatically added by the scriptthat is
>> generating the page, so I can't modify the font size to fit the
>> layout of my design.

At this point I must say that I cannot see the point. Surely if you can add
CSS, you can modify the font size (e.g., font { font-size: 100%; }).

Moreover, if the problem is in the script, the script should be fixed, or
you should use another tool to generate your pages.

I'm afraid the OP might even be trying to remove some text that he is
required to have on the pages in order to comply with some software license.

>> My question is: can I hide it with some css
>> trick ( for example overlapping a blank image ) so that I can add
>> the same textwith the font size I need ?<font size="-1"
>> face="arial"><b>Test To hide</b></font>
>
> You could try with making the <b> to use the same color as the
> background.
> b {
> color: #ffffff
> }

There are too many problems with that approach. For one thing, it is
ineffective when the user has selected "always use my colors". Second, even
if the text is invisible, it affects the layout.

You can simply set
font b { display: none; }
provided that you have no other <b> element nested inside a <font> element.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация