IE, Forms, Image Submit Buttons = Bad Mojo
Been a while, huh? Yeah well, you know…
Found out IE submits funky stuff for the value of a form button that is an image. Better to slap a hidden field in your form. More info here http://ednailor.wordpress.com/2010/02/22/problems-using-an-image-for-submit-button-in-ie/
So, yeah, that’s all. Short but helpful? I hope so.
The First Web Page: Kickin’ it old school…
Remember your first web page? Mine was on Geocities. Aaahhhhh, Geocities! Good times.
Here is THE first web page…sorta. It’s actually a revision of the first page (which no longer exists) but its an early revision. The first page dropped in 1991 and this is a revision from 1992.
Enjoy: http://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html
Cool moving background with CSS3
I saw a cool thing on www.css-tricks.com (one of my favorite sites) and after looking at his code plus a few others was able to doit…so I present:
COOL SLIDE IN BACKGROUND (not the best name but, whattyagonnado?)
Here’s the code…all you need is a png file named droid.png:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
#thebox {
-webkit-border-radius: 14px;
-moz-border-radius: 14px;
border-radius: 14px;
background-color: #10365b;
height: 300px; width: 400px;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #FFF; font-size: 30px;
background-image: url(droid.png);
background-position: 390px 0px; background-repeat:no-repeat;
overflow: hidden;}#thebox p { padding-top: 16px;
padding-right: 150px;
padding-bottom: 16px;
padding-left: 16px;}#thebox:hover {
position: absolute;
background-color: #30567b;
background-image: url(droid.png);
background-position: 190px 0px; background-repeat:no-repeat;
-webkit-transition: all 0.8s ease;
-moz-transition: all 0.8s ease;
background-position: 220px 100%;
background-repeat: no-repeat; }
</style></head>
<body> <div id="thebox">
<p>This is a cool box with some text in it </p>
<p>OK, that's all.</p>
</div>
</body></html>
Super Helpful Nerdy Web Design Type Links
I love CSS-TRICKS.COM. Always interesting, usually helpful…but today its MEGA HELPFUL! This post in particular:
http://css-tricks.com/12389-one-page-apps-i-actually-use/
Why? Because I’m always looking up the code for rounded corners or trying to find the exact link to jQuery…here are some great links from that article!
- http://border-radius.com/ – Quick and easy…LOVE IT!
- http://scriptsrc.net/ – I’m always looking for the links to jQuery and jQuery UI…I even posted on it recently. But this is the current version. Yee-haw!
- http://css-tricks.com/examples/ButtonMaker/ – Quick and easy button!
- http://css3please.com/ – Throw ya hands up for CSS3. It’s a little hard to read but good because it throws the kitchen sink in there.
That’s it. Have fun.
Let Google Host Your jQuery
I cannot seem to find one particular place where this info is available (maybe i’m loosing meh mad googlin’ skills?) but here it is:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
So the first line is your jquery, the 2nd is your jquery ui, the 3rd is the CSS. ’nuff said.
Comments and Firefox: Watch How You Form Them!
I had a WordPress theme I was modifying and like a good little coder I kept adding these types of comments
<!– HERE IS A COMMENT —————————————————————->
I make that long line so all my comments line up down the page. While my page was working fine everywhere else, it kept breaking in Firefox and I couldn’t figure out why. Finally I ran across this post:
which leads here:
http://weblog.200ok.com.au/2008/01/dashing-into-trouble-why-html-comments.html
and explains that while all other browsers render –> as the end of a comment, FF thinks –> OR — is the end of a comment.
Problem solved!
Code on, coders!
Recent Posts
- Box Shadow Inset on Input Field? Yes, please!
- WordPress Plugins I use
- Last Web Page Update (IE is good for something!!!)
- A Good Way To Deal With Padding
- Lost Google Analytics Login? Maybe this will help…maybe.
Categories
- Android
- C#
- Cookies
- CSS
- Droid 2
- FireFox
- General Nerdiness
- God
- GoDaddy
- htaccess
- HTML
- IE8
- Internet Explorer
- Introduction
- Javascript
- jQuery
- Mexico
- Photoshop
- PHP
- Random Thoughts
- SEO
- Spyware
- Virus
- Web Design
- Win7
- Wordpress
