Library code snippets tagged with web design
-
CSS Positioning Within a Container
by Trenton Moss
One of the best things about CSS is that you can position an object absolutely anywhere you want in the document. It's also possible (and often desirable) to position objects within a container. It's simple to do too.
-
Centre Aligning a Block Element
by Trenton Moss
Learn how to have a fixed width layout website, and the content floated in the middle of the screen, with pre IE 6 compatability.
-
Image replacement technique
by Trenton Moss
It's always advisable to use regular HTML markup to display text, as opposed to an image. Doing so allows for a faster download speed and has accessibility benefits. However, if you've absolutely got your heart set on using a certain font and your site visitors are unlikely to have that font on their computers, then really you've got no choice but to use an image.
-
CSS font shorthand rule
by Trenton Moss
Learn how to shorten those CSS font rules.
-
Trimming form fields
by Andy Clarke
Web forms often ask visitors for non-essential information, but long and complicated forms can seriously hinder the e-commerce sales process. Wouldn't it be cool to give users the option to hide these optional fields at their own discretion, and with a clever use of Javascript, the DOM and some CSS we can!
-
How to supress the automatic space between FORMs
by Edward Tanguay
If you stack forms on top of each other on an HTML page, you will notice that there is an automatic blank space inserted. This code will eliminate that space which will give you more freedom when designing a page with many separate forms.
-
Dynamic Meta Tags
by Peeyush Nigam
How to use META Tags to enchance user interface in a web site.
-
Animated Buttons
by Peeyush Nigam
A few more animated buttons using CSS, Javascript and DHTML to create new more interactive & cool Form Button controls. Remember the code is best suited for only IE-5.5 and above.
-
Fading Scrollbar
by Peeyush Nigam
This code can be used to design a Fading Scrollbar, using CSS and JavaScript technology.
-
Animate Button
by Peeyush Nigam
Following code is to develop different animated buttons using the tricks of CSS, Javascript and HTML. The code is effective for IE-5 and above. Developed by Peeyush Nigam (CEO-PARI WEB SERVICES™)
-
Field Content Validation
by Super Tal
Performs validation on a HTML field based on the criteria you specify.
-
Set the target frame of a form
by Kiran Pai
How to make the output of a form appear in a new window or another frame
-
Detect missing images with client-side script
by James Crowley
How to detect missing images with client-side javascript