Questions tagged as 'css'

3
answers

How to add opacity only to the image?

A snippet speaks more than a thousand words: body { padding-top: 11%; background: url(https://fakeimg.pl/1920x1920/); } <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesh...
asked by 31.10.2017 / 16:56
2
answers

Hide / Show in divs according to subclasses

I'm trying to make a code that shows and hides some divs in the click, I tried to use css to help me, but I could not. By the below logic in the click of the "topic" it removes the display class from all items, and adds to the clicked class the...
asked by 03.10.2017 / 20:58
2
answers

Change position image with transition when mouseover it?

I want an image that is in float:right go to float:left , but with some kind of transition.     
asked by 22.11.2016 / 01:42
2
answers

Input alert if given entered is invalid

Suppose there is an input that receives a phone number. If the mask returns it to be invalid, how to insert a warning (html and css) in the input to tell the user that the data is invalid? I do not have a lot of interaction with JS, I just got...
asked by 14.12.2016 / 15:41
4
answers

Hiding div by jQuery

I have the following code snippet in jQuery: $('#btnFiltros').click(function () { if ($('#divFiltros').css('visibility') === 'visible') { $('#divFiltros').css('visibility', 'collapse'); $('#divFiltros').css('display', 'none...
asked by 04.10.2016 / 15:54
2
answers

Page landscape mode does not fit

I put a photo of the background, having 100% height. When I open the site via mobile (or Chrome / Firefox console) in landscape mode, the background of the image does not occupy all the space. In desktop mode and mobile mode in portrait po...
asked by 08.01.2016 / 18:09
2
answers

How to leave the first 4 characters of a string smaller than the others

I did a search and did not find a code to leave only the first 4 characters of a string with a smaller size. I tried this code: $str = "Códigos"; $str = strtolower($str); Only I need to leave are the first 4 numbers smaller than the oth...
asked by 08.01.2016 / 19:02
3
answers

How do I display buttons on top of my div?

Good afternoon, I have a div made with bootstrap and css and I want it when I hover over it, there are two buttons right in the middle of this div. My idea is the following, I have several divs that contains articles and when I hover the mouse o...
asked by 06.11.2015 / 17:04
1
answer

What is the CSS inherit and initial used for? [duplicate]

As the title itself says, what is the inherit and the initial in CSS?     
asked by 19.05.2017 / 15:26
3
answers

How to align one element on top of another with css?

Hello. I have this html code: <p class="titulo"> <a href="javascript:void(0);">(ABC)</a> Texto de Teste </p> It normal looks like this: (ABC) Test Text How do I make (ABC) over the Test Text and centr...
asked by 01.06.2017 / 19:10