Howto Cover 4 Edges Of Images?

N

nntp

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 thinking to use DIV and position. and draw 4 images matching the
edge's sizes as heightx5 widthsx5 etc.

But I can not think a way to cover the image.
 
T

Thomas 'PointedEars' Lahn

Your From address does not specify a mailbox which is a violation
of Internet/Usenet standards and disregarding the Netiquette as
well as most certainly a violation of the Acceptable Use Policy of
your service provider.  More, you are using a domain of TUCOWS Inc.
without authorization. You have been warned.

Your message ID <opsc4kqmfbn6z4w4@nsa> does not contain a fully
qualified domain name (FQDN). You may want to inform your service
provider about this misconfiguration or generate a valid message ID
yourselves.

You may also get yourselves a name.
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.

You are off-topic, use CSS:

clip:rect(5px 5px 5px 5px);

I am thinking to use DIV and position. and draw 4 images matching the
edge's sizes as heightx5 widthsx5 etc.
Don't.

But I can not think a way to cover the image.

Don't cover the image but let the background shine through where you want.


PointedEars
 
L

Lasse Reichstein Nielsen

Thomas 'PointedEars' Lahn said:
use CSS:

clip:rect(5px 5px 5px 5px);


Should be comma-separated. Clients must understand comma-separated lengths,
but only may support space-separated.

Using CSS would be my suggestion too, no matter how you solve it.
Be aware that browser support for "clip" might vary.
/L
 
T

Thomas 'PointedEars' Lahn

Lasse said:
Should be comma-separated. Clients must understand comma-separated
lengths, but only may support space-separated.

URL?


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top