Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Please check out this image:
Look at the part that says 'keyboard'
I want that shape but facing the other way (right) and not curved.
I know this is a pentagon but its not the standard type so its hard to find the name or type of this shape to learn how to make it in css. Any ideas on how to make it!?!?
Thanks guys,
James
It's a rounded rectangle and a triangle (or a rotated square). To make it in "CSS" would require some hacks. I suggest you use a background image.
Mimicking the iPhone design purely in CSS is nearly impossible. However:
I found iWebKit, written by a guy who spent a lot of time on just that task. He did the navigation buttons with border images.
You can take a look at it at http://snippetspace.com/ . It's free to download, I think.
Looking at the demo code, you can easily see how the buttons work.
iWebKit is only for webkit browsers, but it does not take a lot of work to adapt to other browsers (just add -moz or -o lines where it says -webkit in the CSS).
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Say I want to make a website, and I want the page to have some sort of a main-area, and it's supposed to be something like an open book,
sort of something like that if I want to make my point, I want the left border to be 100% of the height of whatever the page is going to show, and the right border(the one that's intersecting with the left border of the right page) to be say 90% of the height of it... that's sort of the idea of the design.
I was sure there would be some HTML5 features that would support this since I've seen stuff like this around the internet but I realized it wouldn't be that easy.
I hoped that there would be people with proper knowledge of web design that could help me with this thing
This is very good article for page flip functionality with html5 :
http://www.creativebloq.com/html5/create-page-flip-effect-html5-canvas-8112798
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to achieve this ribbon using CSS3:
Is there a way to create "distorted" rectangles in CSS 3 or should I go for triangles?
I'm pretty new to CSS3. What would be the easiest way to achieve this ribbon?
I've had some luck with this tool: http://cssarrowplease.com/
In your case, you will have both a :before, and an :after with different arrow configurations.
Lastly, note that to get a pointed arrow, you use a border on one side of 4. But to get a diagonal line, you simply use a border on 2 adjacent sides, and no border on the other sides.
Good luck!
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
So this is maybe a bit of an OCD question. When hovering over text in a webpage the mouse cursor changes to the I beam. I hate that! So I will use CSS to use the default cursor on all elements that aren't links.
Is there any issues in doing this? Am I screwing up any accessibility or something else?
I think it makes it a bit nicer to look at the page with your mouse moving all over without it constantly changing shape on you. I also think it helps make the links stand out more as when the cursor does change, its for a link.
Thanks!
The change that you are making is completely visual and won't affect the "accessibility" of the site...but you might piss people off the same way people get pissed about target="_blank".
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I look 1 item for learning, fun. I would like have the same effect in CSS3 as in flash. http://www.rubenswieringa.com/code/as3/flex/DistortImage/
When I look in internet examples, I found only skew or rotate. I would like to have option distort image of corner image.
It's not trivial to do that – there are at least 3 options though. I'm not backing them up with a how to as that's hard and much longer than would fit here. (plus would take hours without stumbling across a library to do it)
Use canvas. Split the image into bits and draw them in the right place. You could either use the 2D or 3D (WebGL) context depending on what you are doing.
Use CSS 3D transforms. Make lots of divs, set the image to be the background image with the offsets to make it look like one image. Position them using 3D transforms to have the effect required.
Use a custom shader (only in super new browsers). http://html.adobe.com/webstandards/csscustomfilters/cssfilterlab/ has some examples of similar things.
In short, there isn't a simple way at all.
Actually, there is a rather simple way.
Distort.js
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Is there a way to create a background using CSS without the image? with color, and texture?
As Dustin said, there's no "texture" CSS feature. however, if you're using CSS3, you can do some pretty cool tricks like gradients or shadowing to make some neat backgrounds.
No, there is no "texture". However if you find a color and could drop the texture then you can. I would just find a small image to repeat.