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
1
vote
2 answers

Turn bullets back "on" after a Compass Reset

I have a site that's using SCSS and Compass. I used the Compass reset at the top of my SCSS file, @import 'compass/reset'; and it's worked fine. I now have an unordered list that I actually DO want the default bullets on. However, no matter what…
Steve
  • 14,401
  • 35
  • 125
  • 230
1
vote
2 answers

Get
border back after CSS reset

Many CSS resets eliminate the
tag's border, padding, and margin. I suppose this is to ensure they render uniformly across all browsers. However, fieldsets no longer visually separate groups of HTML (form) elements after the reset. Two…
Leftium
  • 16,497
  • 6
  • 64
  • 99
1
vote
2 answers

How to render same margins for every browser?

I have an HTML5 canvas image where I've drawn some points and I want to align some div tags and text input tags next to the points. Unfortunately, browsers do not agree with the space between each div and input tags. I've found a hack for the input…
baptx
  • 3,428
  • 6
  • 33
  • 42
0
votes
4 answers

Overriding Firefox 11's baked-in css

I'm trying to remove the 8px margin from the body tag. I've tried (not all at once) * { padding:0; margin:0; } and html, body { padding:0; margin:0 !important; } and body { margin:-8px; } and even The last one works,…
zzxjoanw
  • 374
  • 4
  • 16
0
votes
2 answers

* vs html, body, div, span, applet, object, iframe...etc

Possible Duplicate: why don't css resets use '*' to cover all elements? Currently I use: *{ margin:0; padding:0; } But I am not sure why people keep using: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,…
mithril333221
  • 799
  • 2
  • 9
  • 20
0
votes
1 answer

CSS Selector exception

I have a external css for reset that apply to all table, td, div, etc.. In my website, there is a customer template that allow user to create their desire content in html. When view this customer template in webpage, I don't want to apply above…
zawmn83
  • 809
  • 1
  • 9
  • 18
0
votes
2 answers

Paragraph tags in Conflict with Meyer's Reset in IE7?

Working on a rather small, and simple layout, I decided to use Meyer's CSS Reset rules to clear some of the expected discrepancies between browsers. All was working fairly well until I decided to add a few paragraphs into a couple nested divs. Once…
Sampson
  • 265,109
  • 74
  • 539
  • 565
0
votes
2 answers

CSS reset overrides specified elements in Firefox

I have a stylesheet where I apply a reset in the beginning. This sets the margin and padding to 0, among other things, for a slew of tags. However, later in the stylesheet I apply margins and padding to specific tags. Yet for some reason Firefox…
tvalent2
  • 4,959
  • 10
  • 45
  • 87
0
votes
2 answers

CSS Reset not working

I have been working on a little photo slider. It looks slightly different in Chrome than in FF so I thought a CSS reset would make them both look the same. I used the Yahoo! YUI CSS reset model but nothing changed. It looks good in FF but in…
Thread7
  • 1,081
  • 2
  • 14
  • 28
0
votes
3 answers

Does Reset.css affects other stylesheets?

I am starting a new project, so i thought to start using Reset.css in my projects. i got the concept of using Reset.css, but one thing is bothering me is that does if affects my other style applied on the same element.. like in reset.css div have 0…
Pal Singh
  • 1,964
  • 1
  • 14
  • 29
0
votes
2 answers

If a CSS rule changes, does the browser need to be refreshed

If I have changed a CSS rule via javascript, do I need to do anything to "refresh" the browser to redisplay the current page using the updated rules?
Noah
  • 15,080
  • 13
  • 104
  • 148
0
votes
2 answers

Issues with "font-size: 100%"

I'm new to css so I'm sorry if this is a dumb question. I was making a site and used this: body { font-size: 80%; } Later, actually today, I tried to apply EricMeyer's CSS reset to my page above the 80% declaration, but it's causing all sorts of…
Kristina
  • 582
  • 1
  • 3
  • 10
0
votes
1 answer

reset.css help not resetting

I have a reset.css style sheet that looks like this, HTML * { margin: 0; padding: 0; padding: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; …
sea_1987
  • 2,902
  • 12
  • 44
  • 69
0
votes
1 answer

CSS Reset for one div

I am trying to create a div on my site that is supposed to work like the descriptions on Ebay where all the css styles of the main site are stripped off and then whatever styles are in the div are what style the div (if you can understand what I…
Derek
  • 9
  • 1
  • 2
0
votes
5 answers

prevent meyer reset css to mess with dynamic content

I implement the Eric Meyer's reset.css in my website, and works great, but it was a little problem. As this a CMS users are free to format the content of their articles as they want and the reset CSS resets the formatting of their text. Any ideas…
byte_slave
  • 1,368
  • 1
  • 12
  • 24