This question already has answers here:
HTML Div border not showing
(3 answers)
Closed 2 years ago.
I am trying to make a foot print for a cool look, but it won't show
here's my code:
.footprint {
width: 100px;
height: 50px;
border-color: gray;
border: 3px;
border-radius: 20px;
}
<div class="footprint"></div>
welcome to SO!
Somebody already found a solution to your problem here:
CSS Property Border-Color Not Working
A div by default has no border-style and no border-width, therefore the border will not be shown.
Related
This question already has answers here:
How can I replace text with CSS?
(25 answers)
Closed last year.
div
{ border: none !important; width: 400px; margin: auto; background-color: #eee !important; text-indent: -9999px;}
div::before{content: 'test';color: black;}
The ::before and ::after attribute don't change the main tag's content, but rather they add content before or after it.
https://developer.mozilla.org/en-US/docs/Web/CSS/::before
This question already has answers here:
How to get only one rounded corner with border-radius htc hack and MSIE v:roundrect?
(2 answers)
CSS Buttons rounded on one side
(3 answers)
Closed 1 year ago.
And yes, the only thing I want to do is apply the border-radius attribute(or something like that) do just 1 corner to a button just like this: "https://i.stack.imgur.com/Mm9VN.jpg"
Don't worry, the link is generated by StackOverFlow so nothing to worry about the link.
Also, I need to include some code otherwise my question will be closed:
Here's what I have tried:
.button {
border-radius: 30;
}
<button type="button" class="button">Button</button>
But it applies the property to all the corners which is not what I want.
Thank You!
Try like following snippet, for more info take a look here:
.button {
border: 1px solid #00bfff;
border-bottom-right-radius: 30%;
border-top-right-radius: 30%;
padding: 20px;
background: #00bfff;
}
<button type="button" class="button">Button</button>
This question already has answers here:
How to animate a dashed arrow?
(2 answers)
Closed 2 years ago.
I'm just needing some HTML and CSS to create a normal dashed arrow in Squarespace.
I would like to customise the colour to #034472 and have similar style to the pic, pointing right, if possible.
Any help with this would be much appreciated!
span {
content: "\21E0";
font-size: 100px;
color: #034472;
}
<span style="color: #034472; font-size: 100px;">⇠</span>
This question already has answers here:
draw diagonal lines in div background with CSS
(13 answers)
Closed 4 years ago.
I want is to have something like this effect.
I tried to make a css template by following the picture above, but I don't know how to do it?
Do you can make css effect according to the above picture?
You can use 2D Transformation (https://www.w3schools.com/css/css3_2dtransforms.asp).
.line1 {
width: 112px;
height: 47px;
border-bottom: 1px solid red;
-webkit-transform:
translateY(-20px)
translateX(5px)
rotate(27deg);
position: absolute; }
Here is an example in JSFiddle
This question already has answers here:
How to create custom tags for HTML [closed]
(6 answers)
Are custom elements valid HTML5?
(12 answers)
Closed 6 years ago.
Is there any problem if I define my own HTML element in this way:
mynewelement {
display: inline-block;
border: 3px solid;
border-color: red;
background-color: pink;
color: #000;
padding: 4px;
}
<mynewelement>Hello World</mynewelement>
Will this lead to problems in the browser?
For me it works fine, no problems detected, but I worry it's not the right way to create a web element supported by all browsers. Is this incorrect? Or is this the same thing like any other html element(div, em, small, etc) and no difference?
Are all html elements made in this way?