This question already has answers here:
Wavy shape with css
(7 answers)
Closed 7 years ago.
Instead of inserting a shape.png, I want to create a custom shape in Dreamweaver. Can I create a shape using code? Please see the image attached.
You can do it using CSS. You can Watch Many SHAPES HERE...
When You need a Curvy Borders (As shown In the Shape.png ) Use
Border-radius:10px
//Or other properties are there!
Hope So You Know Css and its properties.
I have simple program for simple curve ...
Css file:
.box{
width:500px; height:100px;
border:solid 5px #000;
border-color:#000 transparent transparent transparent;
border-radius: 50%/100px 100px 0 0;
}
Html file:
<div class="box"></div>
Output:
You can make many Shapes using CSS...
Related
This question already has answers here:
CSS Property Border-Color Not Working
(6 answers)
Closed 4 months ago.
I am struggling to find out why my CSS in the external .css is not being applied to my table in my .html file. It is properly linked, as all other css elements show up on the .html, however, for this table, it isn't being applied.
Please never post images of code. Instead, post the code itself, preferably as a runnable Stack Overflow snippet.
You haven't provided a border style.
Try
table, th, td { border: 5px solid green; }
Other border styles you could try:
dotted - Defines a dotted border.
dashed - Defines a dashed border.
solid - Defines a solid border.
double - Defines a double border.
groove - Defines a 3D grooved border.
ridge - Defines a 3D ridged border.
inset - Defines a 3D inset border.
outset - Defines a 3D outset border.
This question already has answers here:
Make CSS3 triangle with linear gradient
(5 answers)
Closed 1 year ago.
I am trying to create a website but am having a little trouble adding a gradient into triangle shape I have created in css.
Here is what I am trying to go for:
Figma Prototype
However here is what I have right now
Actual Website
.triangle-tl {
width: 0;
height: 0;
border-top: 1000px solid black;
border-right: 2000px solid transparent;
}
<div class="triangle-tl"></div>
What Can I do to add a gradient into this triangle?
You can use the clip-path CSS property to do that.
to get a basic understanding click here.
And if you want to go for a specific clip-path design (geometry).
yu can easily make it with This.
This question already has answers here:
How to modify the fill color of an SVG image when being served as background image?
(24 answers)
Closed 4 years ago.
Currently I create buttons with icons by using the button's background, like in my example (this is probably the reason for my problem).
I would like to know if it is possible to change the colour of the icon from the CSS? Because at the moment we have to save the same icon multiple times for different colors (black, white, colored versions etc.)
If this is not possible and I have to use , could someone please show me an example of making an svg type button and how to then change it's color.
.btn-icon {
border: 1px solid black;
height: 40px;
width: 40px;
padding: 0px;
background: url("https://image.flaticon.com/icons/svg/1034/1034153.svg");
background-size: cover;
}
<button class="btn-icon"></button>
For Adel's answer in this question Modify SVG fill color when being served as Background-Image
This seem to be an amazing solution for me:
.icon {
background-color: red;
-webkit-mask-image: url(icon.svg);
mask-image: url(icon.svg);
}
I think you should used
background-color: yellow;
In CSS
This question already has answers here:
How do CSS triangles work?
(23 answers)
Closed 7 years ago.
I hate drawing boring straight lines.
How would I draw a line that starts wide and ends narrow using html/css
similar to the one shown in this image.
Here's an example of what Harry mentioned
.triangle{
border-top:10px solid transparent;
border-bottom:10px solid transparent;
border-right:300px solid red;
}
<div class="triangle"></div>
This question already has answers here:
Is there any way to add padding to select options via CSS?
(4 answers)
Closed 8 years ago.
I have a form with around 8 options. I succeeded to make them diferent colors but now I would like to add white spacing between them - like 10px. I tried even adding border but its not showing.
this is what Im trying
#mobileMenuSections select option {
margin:5px 0;
background: rgba(0,0,0,0.3);
color:#fff;
background: url("Images/buttonnavy.png") no-repeat scroll left top #092F46;
}
or with border:
#mobileMenuSections select option {
border-top:10px 0;
background: rgba(0,0,0,0.3);
color:#fff;
background: url("Images/buttonnavy.png") no-repeat scroll left top #092F46;
}
Unfortunately none of these are showing. Background image is also not showing.
thanks in advance for help.
Styling options are very limited and very hard to maintain on differect browsers. I suggest you look at this stackoverflow question or maybe look into some jQuery UI dropdown list or another jQuery plugin.