shaunbaker
Members
-
Joined
-
Last visited
Reputation Activity
-
shaunbaker reacted to dap in Website PSD dpi?dpi - dots per inch is FOR PRINT ONLY.
all you need to use for screen is 1 pixel in your file per pixel on screen
see http://www.scantips.com/no72dpi.html and http://apptools.com/examples/dpi.php
i'm surprised you didn't know that lev
-
shaunbaker reacted to HogIT in send a variable through url helpTry removing the "$" from ?$user_id='.$row['user_id'].'"
edited: from $user_id not the $row.
-
shaunbaker reacted to mteam in Validation Problemstry wrapping inputs and labels in paragraph tags
<div class="columnR"> <h6 class="rolling">Get The Ball Rolling...</h6> <form method="post" action="cleanform.php" id="contact"> <p> <label for="Name">Name:</label> <input type="text" name="name" id="name" /><br /> <label for="ContactNumber">Number:</label> <input type="text" name="number" id="number" /><br /> <label for="Email">E-Mail:</label> <input type="text" name="email" id="email" /><br /> <label for="Message">Message:</label> <textarea name="message" id="message" rows="5" cols="5" ></textarea><br /> <input type="submit" name="submit" value="submit" class="submitbutton" /> </p> </form> </div>
-
shaunbaker reacted to MolotovRuss in Contact Form Stylingthat's terrible syntax, shame on the website that generated that!
Here's the markup that meens todays standards, although you'll need to find a 'simple php mailer' .php file. These are all over the next, and very easy to understand, there are plenty of tutorials etc.
Right, new markup is:
<form method="post" action="link-to-your-php-file.php"> <fieldset> <label for="name">Name</label> <input type="text" name="name" id="name" /> <label for="email">Email</label> <input type="text" name="email" id="email" /> <label for="message">Message</label> <textarea type"text" name="message" id="message" rows="20" cols="30"> <button type="submit" name="submit">Send me your message!</button> </fieldet> </form>
So basically how this works is, users will type in the inputs and textareas, and then when they click submit they're sent to your .php mailer file, which draws out the info that has been given, and then is able to send that info in an email to your recipient(s).
Your original generated code there has a captcha n it, which is qute a bad way of stopping spam, as it makes the user have to put in the effort.
Instead, put in a new <label> and <input>, both with the class 'honey'm which you will then hide in your css (.honey { display: none; }. You'll need to give the <input the name of 'honey'. Then in your php (you will probs wna read a full tutorial on this) your php says if that input is set (which normal users won't be doing) then don't send email.
Hope that helps buddy, PM me if you need any further assistance!
-
shaunbaker reacted to Wickham in CSS Web layoutHere you go, just copy/paste it all without editing, then adjust the widths and heights if you want. My code validates (check your code here http://validator.w3.org/ )
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test Page</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <style type="text/css"> body { margin: 0; } div { padding: 5px; margin: 0; } #wrap { width: 1000px; margin: 0 auto; position: relative; padding: 0; } #header-left { width: 187px; float: left; border-right: 3px solid #000; height: 150px; } #header-right { width: 790px; float: right; height: 150px; background: #ccc; } .clear { clear: both; width: 100%; height: 0; visibility: hidden; padding: 0; } #nav { width: 187px; float: left; border: solid #000; border-width: 3px 3px 3px 0; height: 350px; background: #ccc; } #content { width: 790px; float: left; border: solid #000; border-width: 3px 0 3px 0; height: 350px; } #subnav { width: 790px; border-bottom: 3px solid #000; height: 70px; background: #ccc; margin: -5px 0 0 -5px; } #footer-left { width: 187px; float: left; border-right: 3px solid #000; height: 150px; } #footer-right { width: 790px; float: right; height: 150px; background: #ccc; } p { margin: 0; } </style> </head> <body> <div id="wrap"> <div id="header-left"><p> </p></div> <div id="header-right"><p>Header</p></div> <div class="clear"> </div> <div id="nav"><p>Navigation</p></div> <div id="content"> <div id="subnav"><p>Sub-navigation</p></div> <p>Body</p> </div> <div class="clear"> </div> <div id="footer-left"><p> </p></div> <div id="footer-right"><p>Footer</p></div> </div><!--end of #wrap--> </body> </html>
It looks like this:-
http://www.wickham43.com/forumposts/thrash100129-2.html
Remember that padding and borders need to be added to a div width if you edit widths. The left side of my page is 200px being 187 + 3px right border + 2*5px padding = 200px
The right side is 790 + 2*5px padding = 800px.
-
shaunbaker reacted to mteam in Multiple pages within one "box"?Have a look here at scrollable
-
shaunbaker reacted to BlueDreamer in Tips for Newbies and OldiesThink accessibility - not everyone is blessed with perfect sight, perfect arms, hand and fingers (or even perfect computers!).
Use HTML headings to structure your document Mark up text content as correct paragraphs, lists etc An ALT attribute is for describing the image, not for keyword stuffing Remember to use LABEL tags for all form fields Clearly identify what text is a link, use contrasting link colour against normal (non linked) text colour. Don't be afraid to leave the default link underline in place. Never never ever ever remove the dotted link outline you see when you activate or click a link. If your vanity gets the bettr of you then style a:active and a:focus accordingly! Avoid corporate jargon and buzz words. If you must use them explain what they mean, either by referring to their meaning early on in your copy, or use of ABBR or ACRONYM tags as appropriate. Make your navigation consistent, avoid Flash or Javascript generated nav menus Test your site with images turned off, doe sit still work? Test your site with Javascript/Flash turned off, does it still work?
-
shaunbaker reacted to terydinho in Tips for Newbies and OldiesMy tip is:
STEP AWAY FROM THE COMPUTER
Starting your design in photoshop with no idea of what you are going to be building is a sure fire way to pulling your hair out and coming up with a rubbish design.
Stop. Step away from the computer and have a think about your client. Always get a proper, fully detailed brief (even if it is from Uncle Alan who you are just doing a quick site for) to work from and really take the time to read it. It is easy to think... 'oh it's a site about tropical fish' and just get the ocean blue colour pallette out. By really thinking about the ONE KEY MESSAGE you want your site to portray, your design will be a thousand times better, because it will be on-message.
Use a pencil and paper, draw up very rough mocks of the site before you even think about decorating it with photoshop and css etc... think about what YOU would expect to see on a great site, would you be swayed by testimonials, or is that box just there because you lost your way in Photoshop and needed a filler.
Basically, by stepping away from your computer and really THINKING about the client and their needs, you will end up creating a much, much better and intuative site with a lot less stress