Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I want a really weird shaped div and I've read around the web for shaping divs but they only show how to do triangles and circles and things like that. No one really explains why the thing is happening that they do.
Please note: It can't be just a border, as there is supposed to be text inside it.
I sure hope someone could help me :)
I have tried several things but none were doing what I wanted them to do.
Thanks a lot.
You can get the desired results using CSS3 borders and transform properties. More details including working examples can be found here:
http://css-tricks.com/examples/ShapesOfCSS/
use two div's. give border-radius to inside div. and place text inside your div.
http://www.samuelrossille.com/css-shape/#1142AAy0z-10z-4z13z4z0_20z2z-4z4z0
Try this site, you can generate your own shapes.
I made you a little start.
Veel succes
I think the best solution is to slice your shape in Photoshop or any other program as transparent .png and include it as css background for that div
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
There is a problem in removing the whitespace from the first GIF I posted for my website. I cannot understand why this particular GIF is showing white space while the others are perfectly normal. Please help?
The problem isn't code related. The image itself isn't transparent so will need editing.
Download Paint.net
1.1 Download link https://www.dotpdn.com/files/paint.net.4.2.install.zip
1.2 Manual: https://www.getpaint.net/doc/latest/InstallPDN.html
You should make your "smile image" as transparent https://superuser.com/questions/508172/changing-transparency-in-paint-net
use the answer by Gruber
Then add changed image to the HTML. The white square will take the color of your background.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
So I've never had an issue doing this before.
I have this:
html {
background: linear-gradient (#1f7c65, #60d4ae);
}
It's doing nothing. Should be super straightforward. I've even stripped all other CSS to be sure there wasn't something else affecting it. So the above line is the only styling applied to the entire document.
If I add a
background-color: red;
It works fine.
When I look at the code in the in-browser console, it has the linear-gradient attribute struck through, as if there was an overriding problem.
I've cross-referenced with any other sites I've made that use gradients. The code block is identical. I've checked it against W3Schools, thinking maybe I'm just having a stupid day (it is Monday).
Tested in three browsers: Firefox, Chrome, and Safari (all most current update). Tested with both hex codes and CSS color names.
Anyone have any ideas?
Thanks in advance!
Has to do with the spacing, delete the space between the word gradient. and also uncomment the hex color
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 8 years ago.
Improve this question
Basically I am working on some practices since last week to start learning html and css, and I wanted to create a table of sorts to display items with the option to see more info and take/buy it. I was thinking in adding some background icons or image hence the strange looking table.
My question is. Can something like that be styled or would a normal table be better? To illustrate my point I did a mockup of sorts.
Oh! And as not to make another question just for that, can a dropdown list be made to have checkboxs without using jQuery? I'm afraid that is completely out of my reach with my current knowledge.
http://i59.tinypic.com/25z47dh.png
Thanks a lot in advance
Best Wishes
You have a few options:
You may use display: table and assign table 'rows' and 'columns' on div tags.
Or
You may use float: left which will line everything like a table and be more responsive.
Or
You may use display: inline-block which will behave a lot like the floats except you get a little bit more control on box height.
There is no correct answer here but my preference is with inline-block since browser support tends to be superior than floats while keeping everything responsive.
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
There is a regular psd file only with the background.
I have Photoshop CS 5.1, ran into a problem: I do not know how to cut out the background or the background to be two main background was such a stretch greens here at 100%, while the other (which is at the center of the white glow) was like in the center of the future site. I was just trying not to cut. Either cut out the curve, or the background is not inserted.
In short it is necessary that the central part of the site was a white shadow:)
Sorry for bad english
First of all, I think that it's not a good idea to use a software who is designed for digital photograph post-production, when you are trying to illustrate something. I strongly recommend Illustrator or Inkscape instead of photoshop wich I think is great for other purposes.
This article could be useful to achive the gradien to transparent effect in illustrator.
http://creativetechs.com/tipsblog/transparent-gradients-in-illustrator/
Are you trying to do something like what I sketched out in this fiddle?:
http://jsfiddle.net/2vvz3/
If not, let me know where's the diference and mayebe I could help you out with this problem.
You may not need to cut out the background. Instead use the entire image as a large background for your site. Here is an article that explains how to use a large background. Hope this helps.
http://webdesignerwall.com/tutorials/how-to-css-large-background
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
I have just started practicing converting PSD's to HTML/CSS. But sometimes you see PSD's and it just seems impossible to craft using html and css.
Like the one here :
http://i.stack.imgur.com/rx0dl.jpg
Thanks alot
The way you should approach this is the same as you would approach any other PSD to HTML, divide it in blocks in your head and start from the top.
Here I made a very rough example of how you could divide this:
http://i.imgur.com/glZJ5.jpg
Use grid lines in photoshop to divide your image in different sections and create slices from there. You can even export to html once you've done that and it will create the css styles required too.
You can find a video explaining how to it here:
http://www.youtube.com/watch?v=DVfxe4pqvo8
Well, start with the basics:
A central content container. Unfortunately, images only describe the layout with one particular screen resolution, but it looks like the designer wanted a centered element with fixed with, probably 960px.
In that container, two headers. You can use the border-radius CSS property to make borders round, but you'll probably need some background images for some icons.
Add the example text, unstyled so far.
Add the front image. You can probably crop it in Photoshop.