As a website styler, it can get quite frustrating in this world of CSS, having to endlessly replicate code lines just to target another selector below the one you are styling, it can add up to literally thousands of lines of code, unnecessary code as well which you will eventually have to sift through just to find that line height that seemed like a good idea to set at the time…
css
First we create an outer div which will be used to apply the background image. Our links will go inside a nested div to keep our code organised and allow us to apply styles to the links as a group. The nested div can also come in handy when using a style sheet switcher to create alternate CSS menu effects.
Your code is like this:
<div id="box"></div>
and you want to put a minimum height on the div called 'box'. Put the following code into your CSS:
#box { /* sets max-height for IE */ height: expression( this.scrollHeight > 332 ? "333px" : "auto" ); /* sets max-height value for all standards-compliant browsers */ max-height: 333px; }
Here's a basic example of doing liquid rounded corners:
<div class="cornerTR"/></div> <div class="cornerTL"/></div> <div id="content"> blah blah blah ... </div>
Use the following doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "https://www.w3.org/TR/html4/strict.dtd">
In your css, put the following style for taking off al those pesky unneeded padding and margin values:
*{ margin: 0; padding: 0; }
Archive
- May 2016 (1)
- June 2015 (7)
- May 2015 (3)
- April 2015 (2)
- March 2015 (6)
- February 2015 (3)
- January 2015 (2)
- December 2014 (3)
- November 2014 (1)
- October 2014 (8)
- September 2014 (8)
- August 2014 (8)
- July 2014 (14)
- June 2014 (12)
- May 2014 (9)
- September 2013 (2)
- April 2013 (2)
- March 2013 (5)
- November 2012 (2)
- June 2011 (1)
- February 2011 (1)
- August 2010 (1)
- July 2010 (1)
- June 2010 (7)
- May 2010 (1)
- March 2010 (5)
- February 2010 (1)
- November 2009 (4)
- July 2009 (1)
- July 2008 (11)
- October 2007 (2)