Questions tagged as 'css'

3
answers

Float half of Dropdown Menu list to another position

How to do in the sixth cell of Menu Dropdown float to left as in the example below: Itriedunsuccessfullysomethinglike:<style>#main-navigation-2.dropdown-menu:nth-child(6),#main-navigation-2.dropdown-menu:nth-child(7),#main-navigation...
asked by 14.12.2017 / 19:03
2
answers

Place spacing effect at beginning of paragraph

Scenario : I have a Terms of Service page and responsibilities. For being very verbose, there are about 15 paragraphs. To generate the initial spacing of each paragraph I am using a set of: 5 &nbsp; however I want to remove these...
asked by 03.08.2015 / 15:03
2
answers

How to change the url of the "background" property?

I have this function that changes the src of an img: window.document.images['img'].src = n_src; <img src="" name="img"/> But I wanted to change the background url of the style: <div name="img" style="background: url()"></d...
asked by 12.10.2015 / 23:25
1
answer

How to make a layout template with angularjs?

I need a default template for all screens in my front-end application, how do I do this with angular-js? How are you?     
asked by 22.09.2015 / 14:37
2
answers

Hexagon with css - blurry image

After many attempts I was able to transform an image into a hexagon with CSS only, I had many problems with SVG, js, etc. However, the image is perfect in IE (albeit unbelievable) and in Chrome it distorts a bit, it distorts Firefox a lot!...
asked by 27.05.2015 / 15:23
1
answer

How do the selectors work, +, ~ in CSS?

Selector + div + p { font-size: 20px; } <div> </div> <p>Este é um paragrafo</p> <p>Este é outro paragrafo</p>    Get the first element found after your declaration. Selector ~ d...
asked by 04.04.2017 / 15:09
3
answers

Execute function for each class you find

I'm creating a picture gallery within thumbnails by automatically setting them where I use the calculation below: if($('.thumb img').width()<$('.thumb img').height()){//portrait $('.thumb img').css({ maxWidth:'100%' }); $('.thu...
asked by 16.12.2013 / 17:45
2
answers

I can not set margin-top / bottom / right for block element, why?

I have a <p> element inside a <div> , like this: HTML <div> <p>texto</p> </div> CSS div { width: 30px; height:30px; background-color: green; } p { width: 30px; height:30px;...
asked by 28.01.2014 / 22:06
2
answers

Change title style within a tag

Is it possible to change the CSS-only style of the title attribute that some HTML tags have? <a href="#" title="Alterar esse estilo aqui">Passe o mouse</a> Note that by default it has only this yellow background...
asked by 22.10.2018 / 15:56
2
answers

remove element css

I wanted to know how I can via jquery remove all css styles from a given html element. Example: html <h1 class="titulo">Título</h1> css .titulo{ padding: 5px; color: #424255; margin-bottom: 5px; border-botto...
asked by 16.12.2015 / 13:02