Questions tagged as 'css3'

1
answer

Center element, independent of its width with CSS percentage

How can I position an element that is NOT a text, since for these I can user text-align: center , but for an element such as a div, its width will modify the 50% of the position, I already know how to do with javascript, but I would...
asked by 25.11.2017 / 15:45
3
answers

How to underline only a few letters of a word with CSS?

What I want is to underline the menus but only the first 3 letters of each menu with CSS. I am using: text-decoration: underline #A1E26C; but it underlines everything. Thank you very much     
asked by 17.11.2017 / 22:28
2
answers

change background color without an input, and define a value in a function in javascript

I'm trying to change the color of a div with a function in javascript, but now I want to load the page already have that color, according to a value already defined in the function, without the need for an input, but I have not achieved it, I ho...
asked by 04.10.2017 / 00:02
3
answers

How to align icons in the cells

Hello, I'm using the fontawesome library to show some icons in some cells <script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script> I try to put it in the upper part of the cell, and with valign=...
asked by 14.03.2018 / 19:42
3
answers

Do you use the css rules correctly and prevent the css rule from applying changes to other tags?

   Optimizing style rules css In this style css I can replace 7 lines and lower a rule. .showing h1 { font-size: 30px; padding-bottom: 10px; font-family: "raleway"; font-weight: 300; } .showing h2 { font-size: 30px...
asked by 11.01.2017 / 04:50
1
answer

Upload images png to the server [closed]

I am developing an application with html5 , css3 , jquery and php , and I have the problem that when I want to upload a png image, it does not upload it to the server. I can upload images jpg, bmp, but when the image is png it seems that it...
asked by 15.08.2017 / 22:19
2
answers

Image from CSS

I want to upload an image to a img tag from a css file The following code is from my HTML <img class="logo-header" alt="tienda online"/> and then the CSS img.logo-header{background: url("../img/centro.jpg");} my file fo...
asked by 07.12.2018 / 11:21
2
answers

How to leave the header and footer fixed

I have the following code $(document).ready(main); var contador = 1; function main(){ $('.menu_bar').click(function(){ if (contador == 1) { $('nav').animate({ left:'0' }); contador=0; }else{ contador=1;...
asked by 16.10.2018 / 23:05
2
answers

Can flashing light be placed around an image?

Good day, I would like to know if it is possible to place an intermittent glow on the edge of an image or a div when loading the page (like an advertisement). Thanks.     
asked by 13.06.2017 / 23:14
2
answers

Problem when putting together a grid of images [closed]

I want to build a gallery of images, but the problem I have is that the images are uploaded by the user and can be of any size, and I want it to be a perfect grid (columns of the same size) I can not do this with css or find a bookstore. W...
asked by 16.08.2018 / 16:18