CSS: Is it possible to use only a set part of an image as a background filler?

I have background image for a site header with fixed width. Now I am trying to convert it to a stretching layout.

Is it possible (in CSS2) to take 1px wide portion from the middle of that header image and make a filler out of it? Otherwise I would need to manually cut 1px wide portion of an image, save it as a separated image, and use it with repeat-x.

Answers


Using css only you cannot do this. So your proposed solution is the one that I would use.


No. CSS 2 has no such ability.


Not in CSS2, but in CSS3 you could with the border-image property.

Browser support isn't there yet though. Only the latest releases have it and not IE at all yet.


Need Your Help

How to remove (YYYY) from date-string in PHP?

php string date

I am making a function that remembers a users birthday, and im storing the birthdate in my database in this format "08/12/1988".

Can I assume Flash and PHP will generate the same floating point numbers?

php flash actionscript-3 floating-point client-server

In a multiplayer game I'm developing, we have a few values that are floating point numbers. The back-end (in PHP) and the front-end (in Flash) occasionally perform the same calculations on these nu...