Profile
Achievement
1man's Recent Snippets
- All /
Great little debuging snippet found while browsing. The code adds different coloured borders to the assets depending on its level. Leave commented out if not needed.
96
7596
posted 18 years ago by 1man
This fixes a very annoying bug in IE by where when you scroll the page becomes corrupted. It relates to the way IE renders pages. This code places a null background image behind, making IE render the page differently.
*note* This can also be plac...
5
1023
posted 18 years ago by 1man
A bug seems to occur when you add a negative margin to a list item in IE6. The background image applied to the list item gets repeated randomly and generally messes up. Add this little gem to your head to fix the problem. Remember to change the id ta...
11
1122
posted 18 years ago by 1man
Great little flash player for playing FLV files. Code below simply adds them to your web page. Remember to add 20 pixels to the height="" attribute to allow for the player controler.
For the player goto: http://www.jeroenwijering.com/?item=Flash_Vid...
39
8457
posted 18 years ago by 1man
Simple styling for the links on a webpage using CSS. Sometimes hard to remember what order the have to be in for the :hover to work correctly. (Now fixed :)
2
1111
posted 18 years ago by 1man
Just a simple template for the XHTML 1.0 Strict doctype. Updated with slight fix involving the meta tags.
3
1230
posted 18 years ago by 1man
Very simple standard compliant way of opening a page in a new window. Since XHTML 1.0 Strict doesn't allow the target attribute in the tag. This method isn't recommended, use the DOM folks! See "Standard Compliant Way to Open a New Page Function" in...
46
6109
posted 18 years ago by 1man
I have also posted the Javascript that makes this markup show and hide.
0
934
posted 18 years ago by 1man
This script allows you to show and hide a at the click of a button. See Show / Hide HTML for Markup.
1
1334
posted 18 years ago by 1man
Markup example: See Big Curly Quotes Markup.
Thx to difusion.org.uk. No need for images to make big quotes on a page, CSS does it for you. Tested in many browsers.
94
6760
posted 18 years ago by 1man
Taken from bluerobot. Create a content div, set the width and the margin set to auto will align the div to the centre horizontally.
5
731
posted 18 years ago by 1man
Taken from Dead Centre. Adjust #content depending on the size div you need.
118
13316
posted 18 years ago by 1man
Insert these 2 lines into the to have your local pages refresh while coding. Make sure you use inline style sheets to stop caching problems. Remove once you make the site live.
3
1090
posted 18 years ago by 1man