Questions tagged as 'css'

1
answer

How to calculate pixel height with PHP

I have a screen that generates a report with a limit amount of tables that can not be broken. I have to paginate this report. How to calculate the height of the generated pixels?     
asked by 09.08.2017 / 21:28
2
answers

How to set the background color of sections of a page with CSS?

Within the body of my HTML document I have a sequence of 5 sections, this number may vary depending on the situation. I would like to set a different background for each section "" , ie jump 1 section and apply a background-color, skip ano...
asked by 27.11.2017 / 02:15
4
answers

How to apply a rule for a specific element?

I need to leave a blur image, I'm applying CSS like this: <style> img { -webkit-filter:blur(5px); filter: blur(5px); } </style> But when I add this property it goes to all images in the site, how do I leave just on...
asked by 27.07.2017 / 19:50
2
answers

What's the difference in the declaration of these two options?

1-this .back.flipped What's different about this? .flipped 2- This .front.flipped What's different about this? .back.flipped     
asked by 25.11.2017 / 15:35
1
answer

Source takes time to load on hosted site

I've been hosting my site and I use @font-face in CSS, it has a huge slowness to load that font on the site. What can I do?     
asked by 24.11.2017 / 01:41
1
answer

How to set height in percent using css

Is there any way to set height:80% being 80% the size of the div size that occupies on the screen in css? class="wrapper" style="height: 80%;">     
asked by 29.11.2016 / 21:31
3
answers

CSS direct in HTML tag [closed]

I bring a question today regarding CSS Sometimes it's more feasible to put the direct CSS code in the HTML tag and wonder if this is a bad practice How do I proceed with this question? It is really bad? I make the time and then I move to a...
asked by 19.10.2016 / 02:58
3
answers

Remove spacing created between image and div

I would like to understand why a spacing between the image and the div is created? As you can see by adding the red background. And how to fix without using position or margin and padding negatives? .box-img { width...
asked by 23.06.2017 / 18:56
3
answers

Center a circular div within another div

Good afternoon !! Home I would like to make a circular div be centered on another larger div, it is focused on the left can you help me? .conteudo-externo{ width:200px; height:200px; z-index:3; background:#ff1; float:left;...
asked by 20.09.2017 / 19:18
2
answers

HTML within HTML

I have a question here. I have the following code in HTML: <html> <head> <?php $logado = 'my name'; ?> <link rel="stylesheet" type="text/css" href="cabecalho.css"/> <nav id="menu">...
asked by 21.09.2017 / 19:21