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

Resetting and Overrulling CSS under a certain element

I have element that could be injected into any page using a Firefox Addon. Naturally, it and its ancestors are affected by the CSS rules defined on that page. I can get so far by simply being explicit about every attribute, but even then my…
doctororange
  • 11,670
  • 12
  • 42
  • 58
1
vote
4 answers

What is the best way to implement CSS reset

Possible Duplicate: Best css reset What is the best way to implement CSS reset? My question is more in context of implementing layouts which would be cross-browser, cross-platform compliant. E.g. layout should look similar on desktop browsers…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
1
vote
3 answers

Make embed behave like a div

I would like to add some css to make the tag look like a
. Currently it adds an arbitrary height and width that often lead to a scrolling box similar to an iframe. Does anyone know an "embed reset" to make it behave like a div? Edit:…
Matt
  • 22,224
  • 25
  • 80
  • 116
1
vote
2 answers

How to display an HTML email in a web email client?

Hi I am building a small web based email client. I am facing problems in displaying HTML mails. What are the best practices involved in displaying an HTML mail? Some things I found Css Reset Strip body tag in the mail
Avinasha Shastry
  • 822
  • 1
  • 8
  • 21
1
vote
1 answer

CSS reset sheet for a preexisting IE-only site that wants to improve the cross-browser experience?

I am working on an internal, custom ASP.NET site that was specified by the customer to only require working in Internet Explorer. This means that no resources have been put forward to make sure it works and looks nice in other browsers, although…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
1
vote
2 answers

What's the best way to create a style reset for only a portion of the DOM?

I'm trying to create a css reset that targets only my control. So the HTML will look something like this:
JoshNaro
  • 2,047
  • 2
  • 20
  • 40
1
vote
4 answers

Reset.css and then a Set.css

I have, for a while now been using a reset.css file to reset everything before I start laying out my html designs. The reset is great in that it allows one to better control attributes such as margins, padding, line-height etc for all browsers. In…
Sixfoot Studio
  • 2,951
  • 7
  • 26
  • 35
1
vote
2 answers

Re-setting CSS code for form buttons

I used a CSS reset to reset some commonly-used items. The code is this: html, body, div, h1, h2, h3, h4, ul, ol, li, form, input, fieldset, textarea { margin: 0; padding: 0; border: 0; font-size: 100%; } ul {list-style: none outside…
KdgDev
  • 14,299
  • 46
  • 120
  • 156
1
vote
1 answer

Clear bootstrap styling for part of a page

I'm trying to setup a preview box for an html editor on one of my pages. I made a standard
style container, in which I occasionally drop my html source, and that works fine enough. The problem is, bootstrap's styles are…
panta82
  • 2,763
  • 3
  • 20
  • 38
1
vote
0 answers

inconsistent width of LI between FF, Chrome and all IE

I have nav menu of 9 items with top most structure like so: UL LI A I'm resetting text rendering: #horizontalMega2 > li > a { font-family: "Helvetica", "Arial", "Verdana", "sans-serif"; font-size:10px; font-weight: normal; …
vector
  • 7,334
  • 8
  • 52
  • 80
1
vote
8 answers

Prevent CSS resets only within a certain section of HTML

For the past few years, I've been developing sites with Eric Meyer's CSS resets. I love it and will never look back. I never even thought of looking back. But then today, we implemented a Telerik Rad Editor control. Unfortunately the CSS resets…
Mark Ursino
  • 31,209
  • 11
  • 51
  • 83
1
vote
1 answer

using CSS reset in Joomla articles

I am a beginner to Joomla and the problem I recently faced is HTML tables having different looks in different browsers. I googled the issue and the found solution is to use a CSS reset. Now what I need to know is how to use CSS reset. Can I just…
buddhi weerasinghe
  • 677
  • 2
  • 9
  • 17
1
vote
3 answers

background color disapears when i declare a doctype with YUI reset.css

When running in quirks mode, this works as expected however when I declare HTML 4.01 strict the background color disapears. If I remove the YUI reset.css, it seems to work as it should. Anyone know what YUI is doing? I am using body{ …
Chris Sobolewski
  • 12,819
  • 12
  • 63
  • 96
1
vote
2 answers

un-reset css properties when I used css reset?

I use CKEditor for my text editor, when client edit a text with CKEditor and change the font color, font size and ... I store the HTML code in my database and there is no problem. but when I want to show the HTML Code in my page, the style will…
MajAfy
  • 3,007
  • 10
  • 47
  • 83
1
vote
2 answers

HTML5 Boilerplate and 960.gs should I include reset.css?

Am starting a project using HTML5 Boilerplate and 960.gs. When implementing 960.gs should I copy over reset.css or just have normalize.css, or keep both! Sorry if this is a pathetic question, am still a little green!
pessato
  • 501
  • 6
  • 17