HighDots Forums  

Rough Edges Background

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Rough Edges Background in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Rough Edges Background - 05-15-2008 , 05:36 AM






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

Reply With Quote
  #2  
Old   
Joost Diepenmaat
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 05:42 AM






shapper <mdmoura (AT) gmail (DOT) com> writes:

Quote:
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/


Reply With Quote
  #3  
Old   
shapper
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 06:34 AM



On May 15, 11:42 am, Joost Diepenmaat <jo... (AT) zeekat (DOT) nl> wrote:
Quote:
shapper <mdmo... (AT) gmail (DOT) com> writes:
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


Reply With Quote
  #4  
Old   
Ben C
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 03:20 PM



On 2008-05-15, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Quote:
On May 15, 11:42 am, Joost Diepenmaat <jo... (AT) zeekat (DOT) nl> wrote:
shapper <mdmo... (AT) gmail (DOT) com> writes:
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?
I don't know what you mean by "image replacement". The basic rules are:

1. You can't resize background images, only repeat them.
2. You can resize img elements.
3. So this is possible providing browsers support containing blocks
generated by inline boxes properly, which many don't.

Here is an example which works in Firefox 2 (but not Opera):

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

Although actually the extruded effect looks rather good in Opera. Opera
is also getting the stacking order wrong, which doesn't help.


Reply With Quote
  #5  
Old   
dorayme
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 05:20 PM



In article <slrng2p6o9.5v2.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

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

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

--
dorayme


Reply With Quote
  #6  
Old   
Ben C
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 05:27 PM



On 2008-05-15, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote:
Quote:
In article <slrng2p6o9.5v2.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

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.

I'm surprised Safari is doing the same as there is no particular logic
to that (and the stacking order is definitely wrong in Opera).

MacIE5 is just treating the viewport as the containing block (which is
reasonable, but not what today's spec says).


Reply With Quote
  #7  
Old   
dorayme
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 05:56 PM



In article <slrng2pe78.n2j.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

Quote:
On 2008-05-15, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote:
In article <slrng2p6o9.5v2.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

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.

(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).

Quote:
I'm surprised Safari is doing the same as there is no particular logic
to that (and the stacking order is definitely wrong in Opera).

MacIE5 is just treating the viewport as the containing block (which is
reasonable, but not what today's spec says).
I fire up MacIE 5 sometimes because of the good chance that it will give
a nice comedic surprise. <g>

--
dorayme


Reply With Quote
  #8  
Old   
shapper
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 06:53 PM



On May 15, 11:56 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article <slrng2pe78.n2j.spams... (AT) bowser (DOT) marioworld>,
Ben C <spams... (AT) spam (DOT) eggs> wrote:

On 2008-05-15, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
In article <slrng2p6o9.5v2.spams... (AT) bowser (DOT) marioworld>,
Ben C <spams... (AT) spam (DOT) eggs> wrote:

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.

(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).

I'm surprised Safari is doing the same as there is no particular logic
to that (and the stacking order is definitely wrong in Opera).

MacIE5 is just treating the viewport as the containing block (which is
reasonable, but not what today's spec says).

I fire up MacIE 5 sometimes because of the good chance that it will give
a nice comedic surprise. <g

--
dorayme
Thank for your help.

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.

Thank You Once Again,
Miguel


Reply With Quote
  #9  
Old   
dorayme
 
Posts: n/a

Default Re: Rough Edges Background - 05-15-2008 , 07:50 PM



In article
<63893497-ea36-43a6-ab93-7b38c4de3b74 (AT) w7g2000hsa (DOT) googlegroups.com>,
shapper <mdmoura (AT) gmail (DOT) com> wrote:

"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


Reply With Quote
  #10  
Old   
Ben C
 
Posts: n/a

Default Re: Rough Edges Background - 05-16-2008 , 02:15 AM



On 2008-05-15, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote:
Quote:
In article <slrng2pe78.n2j.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

On 2008-05-15, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote:
In article <slrng2p6o9.5v2.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

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.

Quote:
(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.


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.