CSS Tricks: Horizontal Lines Before and After Texts (Quick Tutorial)
Вставка
- Опубліковано 2 жов 2024
- This Video is going to show you CSS Tricks: Horizontal Lines Before and After Texts (Quick Tutorial) Horizontal Line After Text CSS
What about double lines on the sides and line bar on the bottom? Watch this video and learn more techniques: • CSS Heading Text with ...
Get the code:
22bulbjungle.co...
Subscribe to Garnatti one: bit.ly/2FiBlPO
Visit our website: 22bulbjungle.com
Like us on Facebook: / 22bulbjunglerocks
Follow us:
Instagram: / 22bulbjunglerocks
Twitter: / 22bulbjungle
Show some love :) ✌
22bulbjungle.com/supportme
you are really genius
THX!!!!! Teacher I did it !!!!
I have some question !!!
If i want to make double line, what tags should i add more??
This is what you're looking for: ua-cam.com/video/nAqW6-JJGmw/v-deo.html
when i change div background color this horizonal line was not found
You can try stacking it above other elements using the z-index property. 🙂
thank you sir this video helped me alot and saved my time
Thank you sir ☺️
span is very important here to see z-index working
Thank you so much for clarifying this, your comment saved me a bunch of trouble!
Although you can use a single colon for psuedo elements, it's recommended to use double colon to distinguish it from psuedo classes.
WHATS THE NAME OF THE SONG PLS :)
I don't remember but it's all from UA-cam 🙂
I did exactly the same thing but the line moves way up the page don't know why. Can you please explain why is this happening?
Make the parent relative positioned. See the video.
i want horizontal lines to disappear on hover . how to do this?
What to do if we want to insert image
Why not just use the ::before and set the width to 100%?
I wonder if you could tell me why my code isn't working,
Html:
Welcome
Css:
*{
padding: 0%;
margin: 0%;
}
h1{
position: relative;
text-align: center;
padding: 200px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h1::before{
content: none;
width: 200px;
background-color:black ;
position: absolute;
left: 0px;
top: 50%;
height: 20px;
display: block;
} h1::after{
content: none;
width: 200px;
background-color:black ;
position: absolute;
right: 0px;
top: 50%;
height: 20px;
display: block;
}
content:''; and give a width:600px to h1 your code will work Hope it will help thank you
how to close the distance between them
put it in a div and define the width there
hello i dont know the reason why when i use z-index: -2, the line disappear from it
It's used to order the layer of elements.
The higher the value than any other elements the more priority for it to be on the top of any other elements.
really helpful tutorial
What ends every line of CSS?
Awesome, sir.
Thank you
Thanks
ty fyi
do u have any vids on how to make this responsive?
Try this ua-cam.com/video/mjDek0d1kak/v-deo.html
perfect solution! Thanks!
What about double lines on the sides and line bar on the bottom? Click on the following link to watch the video: ua-cam.com/video/nAqW6-JJGmw/v-deo.html
how to make line long same from div.class=col-md ?
what if the backgound is an image and not white color?
Then you have to add both before and after for the left and right side lines. See more: ua-cam.com/video/nAqW6-JJGmw/v-deo.html
Sir what is main use of Z-index???
Use to order the layer of elements.
how can I do this in a word document?
😆
Gracias tu video me ayudo mucho :D
De nada
what app is this?
its a software :BRACKET