Questions tagged as 'css'

2
answers

Is there a way to access a value by CSS?

I'm trying to fit an image into the css on my site, and I want to extend the image on the whole screen, but for this I have to assign my image: margin-left , to correct screen positioning. Only the value that I will assign in this field...
asked by 27.08.2018 / 14:39
2
answers

Script to select only one checkbox?

I have the following code with a menu of type Accordion menu : function marca() {} body {font-family: Trebuchet MS;margin: 0px;} nav {width: 100%;} p {font-size: 14px;text-align: justify;} .item label {font-size: 14px;color: #333;heig...
asked by 15.03.2017 / 17:27
2
answers

How to make a gradient at the ends of a line, with CSS?

Probably this may be a repeated question, but as I do not know the name of the effect I can not find anything about it, the effect I want to do on the border is exactly the same as the image below: How can I do this? What's his name?...
asked by 20.12.2016 / 15:07
2
answers

Make LI appear only on Mobile

I have an LI and would like it to be shown only in mobile mode: <ul style="display: block;"> <li><a href="/">Início</a></li> <li class="list-cat"></li> <li><a href="teste">Preços</a&g...
asked by 19.06.2017 / 15:57
2
answers

How to make a vertical line [closed]

Hello, I wanted to know how to do a vertical line with this code: <hr> By default it's horizontal, I wanted it very vertical, does anyone know how? I just wanted this code because I have it vertically on my site too.     
asked by 30.07.2016 / 00:32
3
answers

Aligns navbar bootstrap text vertically

I am using two navbar in my project and I have a problem to align the text of the first menu vertically, I tried to create a structure to change but I did not succeed, what I have is this: First Navbar : <div class="navb...
asked by 30.12.2015 / 19:22
1
answer

What is the difference between * and * | *

Using * will find all elements using CSS But recently I found in some codes the use of *|* What's the difference between them?     
asked by 26.01.2016 / 14:16
1
answer

How to apply a style on two different elements using: hover?

Considering: HTML <div id="div1"> <p>Elemento 1</p> </div> <div id="div2"> <p>Elemento 2</p> </div> How can I use :hover in div1 to change style properties of div...
asked by 26.07.2014 / 03:11
2
answers

CSS: float vs. inline-block. What are the advantages and disadvantages of each?

I would like to know the advantages and disadvantages of using the float and display properties with the inline-block value. I know that both work to align elements, but I try to know the pros and cons of each one. Can...
asked by 25.09.2018 / 18:14
1
answer

Loading animation

I have a code that does a loading animation before starting a page. css.css .preload{ position: fixed; z-index:99999; top:0; left:0; width:100%; height:100%; opacity:1; background-color:#fff; /*background-ima...
asked by 03.07.2018 / 13:52