Questions tagged as 'css'

3
answers

css select only first level

I have a menu with up to 3 levels of nested lists. I need to select only the first level text and ignore the nested content. I tried to use .menu > ul> li {} (and some variations of it) and it did not work out what I needed. I tr...
asked by 05.10.2016 / 19:28
2
answers

Footer at the end of the document

I'm trying to leave the footer at the end of the document, but it's at the bottom of the page I'm viewing, thus disrupting the usability of the system ... Follow the footer: <div class="container body-content"> @RenderBody() &...
asked by 13.11.2016 / 02:36
1
answer

Display link icon only according to screen size

In my pages, I have several links like the following: <a href="/Home/Index" class="btn-sm btn-success" role="button"> <i class="glyphicon glyphicon-home"></i> Home </a> It shows an icon in front of text that, when...
asked by 24.11.2017 / 12:11
1
answer

HTML and CSS - Center Tabs to the center of the page

It's a newbie question, but I'm having this difficulty. I have 3 tabs that look like this: ButI'dlikeyoutostayinthecenterlikethis: Alsoinsteadoftext,Iwouldliketoputimages.MyCSSforthetabslookslikethis:/*Stylethetab*/div.tab{overflow:hidden...
asked by 19.11.2017 / 17:14
1
answer

Div with automatic height dropdown menu

Hello, my question is this. let's suppose this code <div> <a>teste</a> <a>teste</a> <a>teste</a> <a>teste</a> </div> This div is displayed when hovering a mouse, so h...
asked by 15.09.2016 / 15:35
1
answer

Transition in elements using: hover: after

How can I apply a transition, for example in a background:linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%) without hover and background:linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 60%) with hover...
asked by 31.01.2017 / 17:44
1
answer

How to make a circle-shaped audio player that calculates the time around you?

So I saw a player on a website: link and wanted to know how I can make a similar one.     
asked by 07.05.2016 / 09:41
1
answer

Background-color without following max-width [closed]

I drew a maximum margin of 1500px, max-width: 1500px, for my site, but the behavior of background-color follows this margin, not wrong, quite the opposite, however I wanted to leave the color of my div in width 100% but the rest of the elements...
asked by 20.03.2017 / 20:49
1
answer

HTML + CSS - Element position relative to the div

I'm not able to position my element at the top and the right end of the div. See that my div is slightly yellowish in color, and my element "x" is in red. This "x" is what I want to position. .ExcluirRelativePosition { position: absolute...
asked by 21.03.2017 / 19:51
2
answers

Table with width 100% and Scroll

I have a table, where it fits the content it has. That way, I added a width: 100% . It is the size of the window. I gave an overflow-x: auto, so it should create a scroll, when smaller. But that's not what happens, it just takes the scr...
asked by 23.07.2016 / 03:40