Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 389
serg Avatar asked Apr 08 '10 22:04

serg


1 Answers

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

like image 119
AxelEckenberger Avatar answered Sep 30 '22 12:09

AxelEckenberger