Mobile app version of vmapp.org
Login or Join
Tiffany637

: How can I slice parallelogram shapes to HTML/CSS? I have to slice website design to HTML/CSS. Main navigation menu looks like below: I am beginner webdeveloper and I don't know how to slice

@Tiffany637

Posted in: #Css #Html #Psd

I have to slice website design to HTML/CSS. Main navigation menu looks like below:



I am beginner webdeveloper and I don't know how to slice this design into compatible and cross-browser code. How these parallelogram shaped items should be sliced?

There are also hover and selected states so I would probably use CSS sprites for that, but main problem for me are these parallelograms.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Tiffany637

3 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

You can create parallelograms with CSS properties, although it looks like it shows up as a square in IE.

You also may be able to use a good old fashioned imagemap with some area tags utilizing shape="poly" and coordinates for the points. Not sure if that works with rollover or not.

10% popularity Vote Up Vote Down


 

@Connie744

If you don't want to play around with css transform.

Honestly the best thing is to use rectangles and ensuring the rollover states do not cross over the rectangles. Example: imm.io/J4D8
I also found this if it helps, doctype.com/rollover-done-css

10% popularity Vote Up Vote Down


 

@Sue5673885

Although not supported by older browsers, you could have a look at the transform property in CSS. davidwalsh.name/css-transform-rotate It would be quite fiddly though, I'd suggest you to use background images and position the text above it (and possibly even the text as image) in order to achieve the effect shown in the url you have posted

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme