Questions tagged [css-reset]

CSS reset is a technique that allows you to make chosen elements display in (roughly) the same way by default in different browsers. Came to exist since different browsers rendered basic HTML elements with their own styling, which - obviously - differed. Ties with css-cross-browser, but is more specific.

CSS reset is a technique that allows you to make chosen elements be displayed in (roughly) the same way by default in different browsers. CSS reset came to exist since different browsers rendered basic HTML elements with their own styling, which - obviously - differed. Ties with css-cross-browser, but is more specific.

Common implementations:

99 questions
6
votes
5 answers

The confusion about * {margin:0; padding:0;}

In some articles that I've read, the use of * {margin:0; padding:0;} is discouraged as it would affect the web site's performance. So I turned to a reset.css stylesheet. But I'm wondering, how does it affect the performance?
hh54188
  • 14,887
  • 32
  • 113
  • 184
6
votes
3 answers

Is there a HTML test file I can use for CSS resets?

There are a lot of CSS resets. I am building something for mobile devices and I want to skip as much of the unnecessary CSS as possible so I was wondering if there is an exhaustive HTML test page I can run some of the CSS resets against to test…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
6
votes
3 answers

How to normalize padding and margins across browsers

How do other designers normalize padding and margins across browsers. I have tried CSS Resets (currently using the YUI one), but I still run into a lot of inconsistencies. It seems for some elements, with some browsers, setting a padding or margin…
chobo
  • 31,561
  • 38
  • 123
  • 191
6
votes
3 answers

Is there any reset Library for CSS for just Modern Browsers?

I am aiming to support just IE10+, and the newest versions of the most popular browsers. I am wondering if there is a css reset just for those specific browsers ignoring old IE and Moz fixes. I couldn't find any, but perhaps I have overlooked some…
xivo
  • 2,054
  • 3
  • 22
  • 37
5
votes
6 answers

How can I test my webpage using different browsers?

I just found out about the Yahoo UI Reset CSS tool/file and I'm using it on my website. On my machine I have Internet Explorer 7 and Firefox 3.01 and my webpage looks the same on these two browsers. A friend is using Internet Explorer 6 and the…
dole doug
  • 34,070
  • 20
  • 68
  • 87
5
votes
2 answers

can't change body background color using CSS reset

Here is my HTML code: Hover Zoom
Rahbee Alvee
  • 1,924
  • 7
  • 26
  • 42
5
votes
2 answers

Very different font sizes across browsers

Update: Added simple test example http://jsfiddle.net/7UhrW/1/ using normalize.css. Chrome/WebKit and Firefox have different rendering engines which render fonts differently, in particular with differing dimensions. This isn't too surprising, but…
Yang
  • 16,037
  • 15
  • 100
  • 142
4
votes
4 answers

Is this CSS Reset okay?

I was intending to use Eric Meyer's CSS reset but I stumbled in some cross-browser differences (like input margins). Based on it, i came up with a more agressive aproach: (This is outdated. Don't forget to check the current revised version at the…
Hugo Mota
  • 11,200
  • 9
  • 42
  • 60
4
votes
4 answers

Scoped CSS reset

I have a jQuery plugin that is going to dynamically render a decent amount of HTML to the page. I want consumers of the plugin to be able to use it as is and for it to look the same no matter what CSS styles they have in place. Hence I need a…
vdh_ant
  • 12,720
  • 13
  • 66
  • 86
4
votes
3 answers

Cross-browser version of "all: initial"

I am trying to use all: initial to isolate the CSS for a special "widget" in the page. The problem is that Safari and IE10 and earlier don't support the all property and IE doesn't support the initial value. Is there a way to emulate the same…
Jesse
  • 6,725
  • 5
  • 40
  • 45
4
votes
3 answers

Should I customize the normalize.css file?

When starting a new project it is always the question which tools, frameworks and libraries to use. I often included the Eric Meyer CSS Reset, but this time I will switch to Normalize.css. I understand it as a customisable starting point rather than…
malteriechmann
  • 206
  • 2
  • 10
4
votes
5 answers

Should I use a CSS reset or normalize on Phonegap / Cordova apps?

I am wondering if its a good idea (if I want consistency across a multiplatform build) to include a css reset, or perhaps a css normalize library? My concerns are of course, application speed, load time and memory usage, and the goal is of course UI…
ethanpil
  • 2,522
  • 2
  • 24
  • 34
3
votes
4 answers

reset css (img)

I am new in CSS so have a simple question. here is my script => Default