Tag: css tricks

CSS Tricks (Minimum Width for a Page)

Minimum Width for a Page A very handy CSS command that exists is the min-width command, whereby you can specify a minimum width for any element. This can be particularly useful for specifying a minimum width for a page. Unfortunately, IE doesn’t understand this command, so we’ll need to come up with a new way …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-tricks-minimum-width-for-a-page/

CSS trick (CSS RESET BY ERIC MEYER)

CSS RESET This piece of CSS code resets all the browser default styles preventing any browser inconsistencies in your CSS styles. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-css-reset-by-eric-meyer/

CSS trick (Two classes together)

Two classes together Usually attributes are assigned just one class, but this doesn’t mean that that’s all you’re allowed. In reality, you can assign as many classes as you like! For example: <p class=”text side”></p> Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-two-classes-together/

CSS trick ( CSS box model hack alternative)

CSS box model hack alternative The box model hack is used to fix a rendering problem in pre-IE 6 browsers on PC, where by the border and padding are included in the width of an element, as opposed to added on. For example, when specifying the dimensions of a container you might use the following CSS rule: #box { width: …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-css-box-model-hack-alternative/