473,467 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Rough Edges Background

Hello,

I have an anchor which I would like to have a background image with
rough edges.

How can I do this with CSS?

One of the solutions would be image replacement using CSS ...
.... I am not sure if this works in all browsers, or if is good for
search engines.

Could someone, please, tell me what are the options I have and if
image replacement is a good option?

Thanks,
Miguel
Jun 27 '08 #1
8 3830
shapper <md*****@gmail.comwrites:
Hello,

I have an anchor which I would like to have a background image with
rough edges.

How can I do this with CSS?

One of the solutions would be image replacement using CSS ...
... I am not sure if this works in all browsers, or if is good for
search engines.

Could someone, please, tell me what are the options I have and if
image replacement is a good option?
Looks to me you're over-engineering; what's wrong with background-image?
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Jun 27 '08 #2
On May 15, 11:42 am, Joost Diepenmaat <jo...@zeekat.nlwrote:
shapper <mdmo...@gmail.comwrites:
Hello,
I have an anchor which I would like to have a background image with
rough edges.
How can I do this with CSS?
One of the solutions would be image replacement using CSS ...
... I am not sure if this works in all browsers, or if is good for
search engines.
Could someone, please, tell me what are the options I have and if
image replacement is a good option?

Looks to me you're over-engineering; what's wrong with background-image?

--
Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/
The font size is in em ... how can I create a background image that
give rough edges around the text even when text gets bigger or
smaller?

Thank You,
Miguel
Jun 27 '08 #3
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
http://www.tidraso.co.uk/misc/sizedBackground.html
In my FF, Opera (Safari similar) and MacIE5 respectively as you go down:

<http://dorayme.890m.com/alt/justPics/fuzzybg.png>

--
dorayme
Jun 27 '08 #4
In article
<63**********************************@w7g2000hsa.g ooglegroups.com>,
shapper <md*****@gmail.comwrote:
http://stopdesign.com/articles/replace_text/
"Notice the primary titles for each section or page (ie.: the words
³Recent Log Entries² on the <link>front page</link>)"

Can you find "Recent Log Entries" on the page linked to with the words
"front page"?

--
dorayme
Jun 27 '08 #5
On 2008-05-15, dorayme <do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
>On 2008-05-15, dorayme <do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:

http://www.tidraso.co.uk/misc/sizedBackground.html

In my FF, Opera (Safari similar) and MacIE5 respectively as you go down:

<http://dorayme.890m.com/alt/justPics/fuzzybg.png>

Thanks, good screenshots.

FF is showing the desired effect. Opera is probably reminding Americans
of some horrible candy they enjoyed as children.
Do you still have "rock" at the seaside in England? I used to get
Blackpool rock, and Llandudno rock (Wales) and Rhyll rock (Wales) when
on holidays.
Yes you can still get that.
(Rock, Jonathan, is not code for drugs, it is a candy stick, gruesomely
sweet, thick as a broom handle, with the words that go in a circle as
seen from the end that is being sucked, the words remain right through
the length).
And the fun of it is watching the words distort as you go.

A better way to do the fuzzy bg, but even less supported, would be to
use

.fuzzy:before
{
url(fuzzy.png);
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
z-index: -1;
}

instead of

.fuzzy img
{
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
z-index: -1;
}

then you could leave out the img tags. But Firefox (the only browser in
which the original solution works) seems to restrict the range of styles
you can apply to pseudoelements.
Jun 27 '08 #6
On 2008-05-15, shapper <md*****@gmail.comwrote:
On May 15, 11:56 pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
>In article <slrng2pe78.n2j.spams...@bowser.marioworld>,
Ben C <spams...@spam.eggswrote:
On 2008-05-15, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article <slrng2p6o9.5v2.spams...@bowser.marioworld>,
Ben C <spams...@spam.eggswrote:
>>http://www.tidraso.co.uk/misc/sizedBackground.html
In my FF, Opera (Safari similar) and MacIE5 respectively as you go down:
><http://dorayme.890m.com/alt/justPics/fuzzybg.png>
Thanks, good screenshots.
[...]
Ben, when talking about image replacement I was talking something
about this:
http://stopdesign.com/articles/replace_text/

Or this:
http://www.mikeindustries.com/blog/archive/2004/08/sifr

And I was also looking at sprites:
http://www.alistapart.com/articles/sprites

Anyway, just read a few things to try to see if I could adapt to solve
this problem but I suppose from your help that I need to reformulate
my design.
I think the image replacement method is the way to go here. The solution
I suggested is not really practical.
Jun 27 '08 #7
On Fri, 16 May 2008 00:20:59 +0200, dorayme
<do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
>http://www.tidraso.co.uk/misc/sizedBackground.html

In my FF, Opera (Safari similar) and MacIE5 respectively as you go down:

<http://dorayme.890m.com/alt/justPics/fuzzybg.png>
Hmmm, your Opera (/OS) is not my Opera (/OS). Opera 9.27 @ wXP64 does
place the background behind the text. Still lets it run to the right
though.

--
Rik Wasmus
....spamrun finished
Jun 27 '08 #8
In article <op***************@metallium.lan>,
"Rik Wasmus" <lu************@hotmail.comwrote:
On Fri, 16 May 2008 00:20:59 +0200, dorayme
<do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
http://www.tidraso.co.uk/misc/sizedBackground.html
In my FF, Opera (Safari similar) and MacIE5 respectively as you go down:

<http://dorayme.890m.com/alt/justPics/fuzzybg.png>

Hmmm, your Opera (/OS) is not my Opera (/OS). Opera 9.27 @ wXP64 does
place the background behind the text. Still lets it run to the right
though.
Mine is

9.24
Build
3707
Platform
MacOS X
System
10.4.10

--
dorayme
Jun 27 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mark | last post by:
Hi My web site is looking too boxy, does anybody have any tips on how to make standard tables have curved edges. Or.. If I am inserting an images into html and then another image...
18
by: puzzled | last post by:
I have looked and looked and not found the answer to this one - just lots of references to this or that "hack" that is supposed to fix the problem (and it is a problem to some people). If I have...
1
by: nntp | last post by:
I wonder if it is possible: Cover 4 edges of images by 5px each. If it is 400x400, then only the center 390x390 is shown. The edges are covered by white color or some other images. I am...
7
by: active | last post by:
In control panel/Display/Appearance/Effects if : 'Use the following method to smooth edges of screen fonts' is checked and ClearType is selected in the combobox (no problem if Standard is...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.