This question already has answers here:
How to create a triangular shape with curved border?
(2 answers)
Responsive irregular background shape with CSS
(3 answers)
Closed 2 years ago.
In general, the task is a little more difficult. Perhaps it is not border-raudius that should be used here. I do not know..
To better explain the problem, take a look at the following image:
There is a list of items. On hover, element borders and horizontal lines on the sides change color.
Even if I set the borders, I don’t know how to make horizontal lines on the sides and make them interact at the same time on hover.
Do you have any ideas how you can implement this? What approach is needed to solve this problem?
Using only CSS.
Thanks!
Related
This question already has answers here:
Partially overlap elements using CSS
(3 answers)
Closed 11 months ago.
Currently my site looks like this (making a browser based card game), please ignore the art for now - screenshot - I would like them to overlap slightly rather than wrapping around and creating a new line almost like someone is holding the cards. I have no idea where to even start with this without using js so I was wondering if anyone could help me come up with a solution that just uses pure css solution.
You can use margin-left and margin-right with negative values. Or you can set the card positions by using position: absolute and left and top properties.
This question already has answers here:
How do CSS triangles work?
(23 answers)
Add border over triangle element
(3 answers)
Html/Css Triangle with pseudo elements
(1 answer)
Closed 4 years ago.
I realy don't know how to describe it. So I've added a couple of pictures to clear it up.
I'm making a website for one of my customers, I did not designed the site. The designer added a little angle on the border-top of the active menu item.
The menu item gets a dedicated class.
Any ideas?
This question already has answers here:
How to make a child div transparent?
(2 answers)
Closed 5 years ago.
So as exposed in the title, i'd like to make a part of a container transparent, but only where there is another div, I know I can't tell it clearly, then I made an example :
I don't know if it is possible doing this, using ONLY CSS, I can't use JQuery, not even Javascript.
Thank you in advance for your answers :)
No, this can't be done with CSS alone. However, as CBroe has said, you could apply the same background image to the second/inner to give the illusion that it's transparent.
This question already has answers here:
How can I make a div with irregular shapes with css3 and html5?
(3 answers)
Closed 6 years ago.
I'd like to style a div in the shape of an irregular hexagon with all right angles (think the shape of Utah, but not necessarily that orientation).
I've seen some questions on StackExchange regarding irregular shapes for buttons (people say to use an image), and using irregular shapes for triangles (people say to use clipping), but nothing so far on having an irregular shape with right angles, as a parent or child div. Is this possible using only a single div in CSS/3? This question seems promising (I think), but I'm still a novice at CSS and it seems to focus more on images than just container divs (and I don't think there was a consensus, either).
Or will I have to somehow float two divs right next to each other, in the spirit of this answer?
This will be impossible with a single div, because the div will always be rectangular. See the excellent answer here for a fuller explanation: How can I make a div with irregular shapes with css3 and html5?
Edit: This is actually possible with the clip-path CSS attribute, as helpfully pointed out by #ZachSaucier in the comments. Demo You learn something new every day!
This question already has answers here:
The most semantic way of making this container
(9 answers)
Closed 9 years ago.
I am trying to find out how I can replicate this effect as seen on Aviary
Don't listen to the image lovers, I've solved this very problem with no images or extra markup on two occasions:
The most semantic way of making this container
CSS to create curved corner between two elements?
This about "Discover creations" as if it were a rounded green button.
I think the only way to do this is to use an image; my site uses images. It may be possible with CSS3, but the markup would be horrid!
James
http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/
This will give you a starter for 10. The rounded corner is probably an image.
According to firebug, they use an image there http://images.aviary.com/images/layout/nav/link.gif.
A messier way to do it would be to use rounded corners so the green part has rounded corners and is positioned over the gray part.
Here are 25 different ways of making rounded corners. Pick one. :)
http://www.devwebpro.com/25-rounded-corners-techniques-with-css/
(It's not actually 25 techniques, but links to 25 different sites that explain how to do it.)
You can do it pretty quick and easy with javascript if you have just a few of them.
See Here