Question

Font-family not inheriting correctly in contact form layout broken in IE 7

Asked by: laughhearty

Hello,
I've got a problem with my site rendering the font in times roman even though I've got a font-family of geneva on the body in the css. I do however have all h1 and h2 with font-family times roman in the css.
I'm also having a problem with the contact form. It looks like a padding margin issue but I can't figure it out. This is showing up through out the site.

I thought all of this was supposed to be taken care of with the resets in the top of my CSS file.

here is the page: http://paigewilsonarts.com/contact.php

the CSS: http://paigewilsonarts.com/pw.css.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-24 at 18:26:09ID24841189
Topic

Cascading Style Sheets (CSS)

Participating Experts
3
Points
500
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Resizable Fonts
    For some reason, some of my styles resize based upon the viewer setting the font size preferences in Internet Explorer or Mozilla. Other fonts seem unaffected by the selections made by the user. Here is my css: a:link { color: #000000 } .main { font-family: Ar...
  2. Photoshop fonts and equivalent font-families in CSS
    hey again...i was wondering if there is a reference on the web that will list a photoshop font and give its equivalent CSS font-family. I am tired of playing with font-families to find a simple Photoshop font. My site uses Arial Regular Sharp in Photoshop, but I want use CS...
  3. Arial font and CSS
    For some reason i can't get my CSS design to display the arial font. The CSS is set: font-family:Arial, Helvetica, sans-serif; Yet the font isn't arial. I have also tried font-family:Arial; How can i force it to display Arial?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: EricBourlandPosted on 2009-10-24 at 19:12:33ID: 25655234

Well, I usually don't apply a base font style to the body:

body {
      color: #712919;
      font-family: Geneva, Verdana sans-serif;
      font-size: .8em;
      line-height: 1.5em;
      text-align: justify;
}

Instead, in your style sheet, what I did was:

body {
      color: #712919;
}


p {
      font-family: Geneva, Verdana sans-serif;
      font-size: .8em;
      line-height: 1.5em;
      text-align: justify;
      padding-bottom: 1em;
}


This changed the Times New Roman to the proper Geneva.

I'll look at the Contact form in a minute...

Eric

 

by: EricBourlandPosted on 2009-10-24 at 19:16:12ID: 25655241

You can also format your contact form in the pw.css style sheet. Here's an example:

/*-----------------------*/
/* =FORM styles */

.form      {
padding:0;
margin:0;
border:0;
}

textarea {
      width: 71%;
      height: 113px;
      font-family: Verdana, sans-serif;
      font-size: 1em;
      padding-left: 4px;
      border: 1px solid #000;
      background: transparent url('images/textarea-bg.png') no-repeat;
}

I added a 1px solid border to the textarea ... completely optional of course ... but it helps the textarea show up.

Is this helpful?

Eric

 

by: qaljimmyPosted on 2009-10-25 at 01:21:21ID: 25655951

{font-family: Geneva, Verdana sans-serif;}
is an incorrect property setting. Sans-serif is a generic type of font family. Thus, "Verdana sans-serif" confuses the browsers, which are trying to find an installed font on your system called "Verdana sans-serif". They don't find any. Logic of CSS dictates regarding the use of "font-family" property: if you don't find a font called "Geneva", use "Verdana", if you don't find a font called "Verdana", use any sans-serif font type.

Basically, you need a comma after "Verdana" in body declaration of font-family.

 

by: EricBourlandPosted on 2009-10-25 at 10:09:35ID: 25657292

Absolutely agree with qaljimmy. =)

 

by: laughheartyPosted on 2009-10-25 at 18:04:51ID: 25659231

Hi and thank you for the quick replies.
I changed the setting on the font-family property. That fixed the p text but now the h2's are showing up in Geneva and they should be in Times Roman. I believe I've put the proper values in there. So that's weird.

And I've already given the form 0 margin and 0 padding in the top of the css file. And all borders have been taken off of the input text and textarea because I'm using background images.
I did manage to get the submit and reset buttons to line up flush with the left margin by clearing both and not just right. Duh.

But I just can get the last name label and it's input box to get in line.

A

 

by: EricBourlandPosted on 2009-10-25 at 19:47:32ID: 25659466

Hi, laughhearty,

Usually I apply a specific font attribute to every text tag. Something like

h2 {
      font-family: 'Times New Roman', Geneva, Verdana, sans-serif;
      font: 1.4em/2.0em;
      padding-bottom: 1em;
}

... etc. That is, I format every text tag. It does not take long, or much space. You can set up selectors for tags p, li, td, h1, h2, h3, etc. very quickly. This usually gives me complete control over all of my fonts.

Is that helpful?

>>>But I just can get the last name label and it's input box to get in line.

I will take another look at the input box in a little while. You are saying that you want the last name label, and the input field, to line up horizontally as if they were on the same line?

Eric


 

by: qaljimmyPosted on 2009-10-26 at 01:46:31ID: 25660510

Eric is right about text tags. The way I do it though is set the global font i wish to use throughout the website on the  BODY tag. Then i overwrite the font-family for whatever tag i need with a more specific selector like H1,H2, etc. That's good practice IMHO.
Suggestion for the heading fixes is to append the snippet below to your css file.

Also on a sidenote, i'd avoid combining the use of serif fonts (i.e. Times New Roman) with sans-serif (Verdana). Although in your case it looks fine, if headings and text mix up too much, it could get annoying to the eye of the reader.

h1,h2 {font-family:Times New Roman, Times, serif;}
form#contactform div.contact {width:98%; float:none; clear:both;}
form#contactform div.contact label {width:20%;}
form#contactform div.subscribe label {width:auto;}
form#contactform div.contact textarea {vertical-align:top;}

                                              
1:
2:
3:
4:
5:

Select allOpen in new window

 

by: qaljimmyPosted on 2009-10-26 at 01:54:25ID: 25660539

Forgot something on line 3 of snippet
form#contactform div.contact label {width:20%; display:block; float:left;}

 

by: EricBourlandPosted on 2009-10-26 at 07:40:29ID: 25662668

laughhearty,

It looks like the input fields do line up horizontally with the text labels, in both FF and MSIE:

http://paigewilsonarts.com/contact.php

Do you mean you want the text labels and the input fields to line up vertically, in tidy columns? That's doable.

I believe qaljimmy noted a useful way to do that in his code above -- just looking at the CSS he wrote, without seeing the HTML, it looks like qaljimmy articulated a useful way to align text labels and input fields vertically and horizontally. I'm curious to see it work.

Let us know if this is helpful to you or if you have questions?

Best from Eric

 

by: laughheartyPosted on 2009-10-26 at 20:16:30ID: 25668893

Hello,
I really appreciate the help.
So I've attached the code showing what I've got in the Css for the h1 and the h2.
And a screen shot of what I'm seeing in IE concerning the form...

A~

h1, h2 {
	font-family: "Times Roman", Georgia, serif;
	font: 2em normal;
	padding-bottom: 1em;
}

                                              
1:
2:
3:
4:
5:

Select allOpen in new window

 

by: laughheartyPosted on 2009-10-26 at 20:26:55ID: 25668921

See how the Last name label and field are mucking everything up.
I also want to get rid of the scroll bars without having the background scroll in IE as it does when I put
overflow: auto in the css.

A

Hmm...Somehow my pw.css didn't get saved and some of my fixes aren't showing up. So below is the updated screenshot.

 

by: EricBourlandPosted on 2009-10-27 at 14:19:53ID: 25677672

laughhearty, can you attach your HTML and style sheet? I'll take a closer look for you this evening.

Eric

 

by: laughheartyPosted on 2009-10-27 at 16:07:06ID: 25678675

okay,
Thanks Eric!

/* Normalizes margins, padding */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td {
	margin: 0;
	padding: 0; 
}
 
/* Normalizes font-size for headers */
h1, h2, h3, h4, h5, h6 {
	font-size: 100%;
}
 
/* Removes Styles from lists */
ol, ul {
	list-style: none; 
}
 
/* Normalizes font-style and font-weight to normal */
address, caption, cite, code, dfn, em, strong, th, var {
	font-style: normal;
	font-weight: normal;
}
 
/* Removes list-style from lists */
table {
	border-collapse: collapse;
	border-spacing: 0;
}
 
/* Removes border from fieldset and img */
fieldset, img {
	border: 0;
}
 
/* Left-aligns text in caption and th */
caption, th {
	text-align: left;
}
 
/* Removes quotation marks form q */
q:before, q:after {
content: '';
}
 
/* Removes outline from links in firefox */
a {
	outline: none;
}
/*-------------------------------*/
 
/* Universal Styling */
html {
	background: url(images/wallpapertile.jpg) repeat;
} 
body { 
	color: #712919;
	font-family: Geneva, Verdana, sans-serif;
	font-size: .8em;
	line-height: 1.5em;
	text-align: justify;
}
a:link, a:visited {
	color: #721919;
}
a:hover {
	color: #380701;
}
p {
	padding-bottom: 1em;
}
h1, h2 {
	font-family: "Times Roman", Georgia, serif;
	font: 2em normal;
	padding-bottom: 1em;
}
 
/*------------------------*/
/* =general layout */
 
div#content {
	width: 693px;
	margin: 0 auto;
	margin-top: 1px;
}
div#branding {
	height: 164px;
	width: 693px;
	background: url(images/header.png) no-repeat center;
}
div#branding h1 {
	text-indent: -9999px;
}
div#container {
	background: url(images/main-content-bg.png) repeat-y center;
	padding: 40px 0;
	width: 693px;
} 
 
div#main-content {
	width: 580px;
	margin: 40px auto;
}
 
/* =navigation */
 
div#navigation {
	height: 33px;
	width: 675px;
	position: absolute;
	top: 132px;
}	
ul#navbuttons li {
	display: inline;
	float: left;
	padding-left: 28px;
}
ul#navbuttons li:first-child {
	padding-left: 45px;
}
ul#navbuttons li a {
	display: block;
	height: 33px;
	background-repeat: no-repeat;
	background-position: 0 0;
	text-indent: -9999px;
}
 
ul#navbuttons li#home a { background-image: url(images/navbuttons/home.png); width: 47px;}
ul#navbuttons li#about a { background-image: url(images/navbuttons/about.png); width: 49px;}
ul#navbuttons li#still a { background-image: url(images/navbuttons/stilllifes.png); width: 71px;}
ul#navbuttons li#paper a { background-image: url(images/navbuttons/works-on-paper.png); width: 124px;}
ul#navbuttons li#news a { background-image: url(images/navbuttons/news.png); width: 41px;}
ul#navbuttons li#contact a { background-image: url(images/navbuttons/contact.png); width: 63px;}
ul#navbuttons li#links a { background-image: url(images/navbuttons/links.png); width: 45px;}
 
ul#navbuttons li a:hover { background-position: 0 -33px;}
ul#navbuttons li.selected a { background-position: 0 -66px;}
			
/*----------------------*/
/* =site-info */
 
div#site-info {
  height: 100px;
  margin: 0 auto 30px;
	padding-top: 20px;
	overflow: auto;
	font-size: .875em;
	background: url(images/site-info-bg.png) no-repeat bottom center;
}
div#site-info-text {
	position: relative;
	width: 580px;
	margin: 0 auto;
}
div#site-info ul {
	float: left;
	width: 66%;
}
div#site-info ul li {
	display: inline;
	margin: 0px;
	padding: 0px;
	padding-left:10px;
}
div#site-info ul li:first-child {
	padding-left: 0;
}
p#copyright {
	float: right;
	width: 34%;
	text-align: right;
}
p#site-design {
	text-align: center;
	width: 100%;
	clear: both;
	padding-top: 1em;
	border-top: dashed 1px #721919;
	
}
 
/*------------------------*/
/* =homepage */
 
p#homepage-image {
	text-align: center;
	padding: 0 0 0 0;
}
 
/*-----------------------*/
/* =about page */
 
p.first-letter {
	float: left;
	width: 63px;
	padding-right: 5px;
}
p.text {
}
 
/*-----------------------*/
/* =still lifes page */
 
div.gallery img {
	padding-right: 15px;
	padding-bottom: 12px;
}
div#thumbnails {
	margin-left: 19px;
}
 
/*-----------------------*/
/* =works on paper page */
 
p.frame {
	background: url('images/picture-frame.jpg') top center no-repeat;
	width: 361px;
	height: 221px;
	padding-top: 190px;
	padding-left: 150px;
	margin-left: 40px;
	font-size: 3em;
	font-family: "Times Roman", Georgia serif; 
}
 
 
/*-----------------------*/
/* =news page */
 
div#news-story {
	padding-bottom: 100px;
}
 
/*-----------------------*/
/* =contact page */
 
p.bold {
	font-weight: bold;
}
fieldset {
	
	width: 60%;
}
label {
	display: block;
	padding-top: 5px;
}
input[type=text] {
	width: 71%;
	height: 21px;	
	color: #380701;
	font-size: 1em;
	padding: 3px 0 0 4px;
	margin-bottom: 0;
	border: 0;
	background: transparent url('images/input-bg.png') no-repeat;
}
textarea {
	width: 71%;
	height: 113px;
	font-family: Verdana, sans-serif;
	font-size: 1em;
	padding-left: 4px;
	border: 0;
	background: transparent url('images/textarea-bg.png') no-repeat;
}	
div.subscribe {
	padding-top: 6px;
}
div.subscribe label {
	float: right;
	width: 93%;
	margin-top: -5px;
}
span.checkbox {
  	width: 19px;
  	height: 25px;
  	padding: 0 0 0 0;
  	margin: 0 5px 0 0;
  	background: url(images/checkbox.png) no-repeat;
  	display: block;
	float: left;
}
div.send {
	clear: both;
	padding-top: 5px;
}
.submit_button {
	border-style: none;
	width: 76px;
	height: 41px;
	text-indent: -9999px;
	background: url(images/submit.png) 0 0 no-repeat;
	margin: 5px 0 0 0;
	display: block;
	float: left;
}
.reset_button {
	border-style: none;
	width: 76px;
	height: 41px;
	text-indent: -9999px;
	background: url(images/reset.png) 0 0 no-repeat;
	margin: 5px 0 0 0;
	display: block;
	float: left;
 
}
.submit_button:hover {
  	background-position: 0 -41px;
  	cursor: default;
}
 
.reset_button:hover {
		background-position: 0 -41px;
		cursor: default;
}
 
/*-----------------------*/
/* =links page */
 
ul#page-links {
	padding-bottom: 100px;
	font-weight: bold;
}
 
 
<?php  
 //If the form is submitted  
 if(isset($_POST['submit'])) {  
   
     //Check to make sure that the name field is not empty  
     if(trim($_POST['firstname']) == '') {  
         $hasError = true;  
     } else {  
         $firstname = trim($_POST['firstname']);  
     }  
   
     //Check to make sure that the subject field is not empty  
     if(trim($_POST['lastname']) == '') {  
         $hasError = true;  
     } else {  
         $lastname = trim($_POST['lastname']);  
     }  
   	$subject="Sent Through paigewilsonarts.com";
     //Check to make sure sure that a valid email address is submitted  
     if(trim($_POST['email']) == '')  {  
         $hasError = true;  
     } else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) {  
         $hasError = true;  
     } else {  
         $email = trim($_POST['email']);  
     }  
   
     //Check to make sure comments were entered  
     if(trim($_POST['comments']) == '') {  
         $hasError = true;  
     } else {  
         if(function_exists('stripslashes')) {  
             $comments = stripslashes(trim($_POST['comments']));  
         } else {  
             $comments = trim($_POST['comments']);  
         }  
     }  
   
		 //Check to see if Subscribe Button Clicked
		 
		if(IsSet($_POST["subscribe"])){
  $subscribe="Add me to your mailing list!";
}
     //If there is no error, send the email  
     if(!isset($hasError)) {  
         $emailTo = 'paige@paigewilsonarts.com'; //Put your own email address here  
         $body = (IsSet($subscribe) ? $subscribe : "") . "\n\n" . $comments;   
         $headers = 'From: Paigewilsonarts.com <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;  
   
         mail($emailTo, $subject, $body, $headers);  
         $emailSent = true;  
     }  
 }  
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<meta name="description" content="Paige Wilson, contemporary California fine artist, paints large, strong, colorful, realistic and trompe l' oeil still life oil paintings. "/>
	<meta name="keywords" content="landscape artist,still life artist,santa barbara artist,teaching art,UCSB teaching,landscape painting,still life painting,Paige Wilson,Californian artist,painting style,Californian art,Californian landscapes" />
		<link rel="shortcut icon" href="images/favicon.png" />
		<link rel="stylesheet" type="text/css" href="pw.css" />
		<title>Paige Wilson: Santa Barbara California Still life and landscape painter</title>
		<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
		<script src="js/jquery.validate.pack.js" type="text/javascript"></script>
		<script src="js/select_button_styling.js" type="text/javascript"></script>
		<script type="text/javascript">  
$(document).ready(function(){  
     $("#contactform").validate();  
 });  
	</script>
	</head>
	<body>
	<div id="content">
	<div id="branding">
	<h1>Paige Patterson Wilson</h1>
	<div id="navigation">
		<ul id="navbuttons">
			<li id="home"><a href="index.html">Home</a></li>
			<li id="about"><a href="about.html">About</a></li>
			<li id="still"><a href="still-lifes.html">Still Lifes</a></li>
			<li id="paper"><a href="works-on-paper.html">Works on Paper</a></li>
			<li id="news"><a href="news.html">News</a></li>
			<li id="contact" class="selected"><a href="contact.php">Contact</a></li>
			<li id="links"><a href="links.html">Links</a></li>
		</ul>
	</div><!-- navigation -->
	</div><!-- branding -->
	<div id="container">
	<div id="main-content">
	<h2>Contact</h2>
	<p>If you have any questions or comments, please email me at:</p>
 
	<p class="bold"><a href="mailto:paige@paigewilsonarts.com?subject=Paige Wilson - Art">paige@paigewilsonarts.com</a></p>	
	<p>&nbsp;</p>
	
	<p class="bold">Paige Wilson Arts and Blue Tower Studio at:</p>
	
	<p class="bold">1229 Gillespie Way<br />
	Santa Barbara, CA 93101-4810
	</p>
	<p>is open by appointment.</p>
	<p class="bold">Phone: 805-259-6076</p> 
	<p>&nbsp;</p>
	<p>If you would like to be added to my mailing list, please fill out the form below:</p>	
	 <?php if(isset($hasError)) { //If errors are found ?>  
    <p class="error">Please check if you've filled all the fields with valid information. Thank you.</p>  
 <?php } ?>  
   
 <?php if(isset($emailSent) && $emailSent == true) { //If email is sent ?>  
     <p><strong>Email Successfully Sent!</strong></p>  
     <p>Thank you <strong><?php echo $name;?></strong> for using my contact form! Your email was successfully sent and I will be in touch with you soon.</p>  
 <?php } ?>
 
	<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="contactform">
  <fieldset>
  	<div class="contact">
    <label for="firstname">First Name:</label>
    <input type="text" name="firstname" id="firstname" value="" class="required" />
    </div>
		<div class="contact"
		<label for="lastname">Last Name:</label>
    <input type="text" name="lastname" id="lastname" value="" class="required" />
    </div>
    <div class="contact">
    <label for="email">E-mail:</label>
    <input type="text" name="email" id="email" class="required email" value="" />
    </div>      
		<div class="contact">
    <label for="comments">Comments:</label>
    <textarea name="comments" id="comments" rows="7" cols="30" class="required"></textarea>
    </div>
		<div class="subscribe">
		
    <input type="checkbox" name="subscribe" id="subscribe" value="1" class="styled"/>
		<label for="subscribe">Add me to your Mailing List</label>
    </div>
 	<div class="send">
  	<button type="submit" name="submit" id="submit" class="submit_button">submit</button><button type="reset" name="reset" id="reset" class="reset_button">reset</button>
  	</div>
  	</fieldset>
  	</form>
	</div><!-- main-content -->
	</div><!-- container -->
	<div id="site-info">
		<div id="site-info-text">
		<ul>
			<li><a href="index.html">Home</a></li><li> <!-- getting rid of whitespace in IE -->
			<a href="about.html">About</a></li><li>
			<a href="still-lifes.html">Still Lifes</a></li><li>
			<a href="works-on-paper.html">Works on Paper</a></li><li>
			<a href="news.html">News</a></li><li>
			<a href="contact.php">Contact</a></li><li>
			<a href="links.html">Links</a></li>
		</ul>
		<p id="copyright">&copy; 2009 Paige Patterson Wilson</p>
		<p id="site-design">Site Design: <a href="mailto:alicia@aliciastrose.com">Alicia St Rose</a></p>
		</div><!-- site-info-text -->
	</div><!-- site-info -->
	</div><!-- content -->
	</body>
</html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:

Select allOpen in new window

 

by: EricBourlandPosted on 2009-10-27 at 22:26:23ID: 25680141

Maybe something like this? Do I have the right idea?

Your CSS seems a little complicated. I think "less is more". =)

Let me know what you think.

Eric

 

by: KravimirPosted on 2009-10-27 at 22:54:41ID: 25680237

> See how the Last name label and field are mucking everything up.

The one XHTML error is causing that.

            <div class="contact"
            <label for="lastname">Last Name:</label>

should be

            <div class="contact">
            <label for="lastname">Last Name:</label>


> I also want to get rid of the scroll bars without having the background scroll in IE as it does
> when I put overflow: auto in the css.

Which element did you give overflow:auto to?

 

by: laughheartyPosted on 2009-10-27 at 23:46:36ID: 25680467

Hi Kravimir,
That fixed the name label. I can't believe I missed that.

As far as the overflow: auto. I had it on the textarea selector. But took it off since it wasn't working. But now I realize it's imperative anyway just incase someone puts a lot of text in the field.

I even tried background attachment: fixed. And it still scrolls.

Eric,
Your code snippet isn't showing up on this end.



fieldset {
	
	width: 60%;
}
label {
	display: block;
	padding-top: 5px;
}
input[type=text] {
	width: 71%;
	height: 21px;	
	color: #380701;
	font-size: 1em;
	padding: 3px 0 0 4px;
	margin-bottom: 0;
	border: 0;
	background: transparent url('images/input-bg.png') no-repeat;
}
textarea {
	width: 71%;
	height: 113px;
	font-family: Verdana, sans-serif;
	font-size: 1em;
	padding-left: 4px;
	border: 0;
	overflow: auto;
	background-attachment: fixed;
	background: url('images/textarea-bg.png') no-repeat;
}	
div.subscribe {
	padding-top: 6px;
}
div.subscribe label {
	float: right;
	width: 93%;
	margin-top: -5px;
}
span.checkbox {
  	width: 19px;
  	height: 25px;
  	padding: 0 0 0 0;
  	margin: 0 5px 0 0;
  	background: url(images/checkbox.png) no-repeat;
  	display: block;
	float: left;
}
div.send {
	clear: both;
	padding-top: 5px;
}
.submit_button {
	border-style: none;
	width: 76px;
	height: 41px;
	text-indent: -9999px;
	background: url(images/submit.png) 0 0 no-repeat;
	margin: 5px 0 0 0;
	display: block;
	float: left;
}
.reset_button {
	border-style: none;
	width: 76px;
	height: 41px;
	text-indent: -9999px;
	background: url(images/reset.png) 0 0 no-repeat;
	margin: 5px 0 0 0;
	display: block;
	float: left;
 
}
.submit_button:hover {
  	background-position: 0 -41px;
  	cursor: default;
}
 
.reset_button:hover {
		background-position: 0 -41px;
		cursor: default;
}

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:

Select allOpen in new window

 

by: KravimirPosted on 2009-10-27 at 23:57:41ID: 25680523

I suggest you give the background image to the textarea's parent with "background-position: left bottom"

 

by: laughheartyPosted on 2009-10-28 at 00:36:47ID: 25680648

That worked Kravimir!
Thank you.


qaljimmy's and Kravimir's solutions worked out this time.

Before I award the points and close this question I want to give a kudo to EricBourland. Your eagerness to find a solution and your time at trying to solve it was very much appreciated. Thank you!!!

A~

 

by: laughheartyPosted on 2009-10-28 at 00:46:45ID: 25680692


Oops,
before I close this question, I just realized part of my original question has been left unresolved.
I have a font problem. My h2's are still showing up as Verdana when I've given them the font-family value of Times Roman.

I fixed it so that all p's are Verdana instead of Times Roman, but then the h2's went to Verdana as well!

I'm pretty sure this is something retarded....

html {
	background: url(images/wallpapertile.jpg) repeat;
} 
body { 
	color: #712919;
	font-family: Geneva, Verdana, sans-serif;
	font-size: .8em;
	line-height: 1.5em;
	text-align: justify;
}
a:link, a:visited {
	color: #721919;
}
a:hover {
	color: #380701;
}
p {
	padding-bottom: 1em;
}
h2 {
	font-family: Times, Georgia, serif;
	font: 2em normal;
	padding-bottom: 1em;
}
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:

Select allOpen in new window

 

by: laughheartyPosted on 2009-10-28 at 00:53:49ID: 25680725

This problem is only in IE 7 haven't checked 8

 

by: KravimirPosted on 2009-10-28 at 01:14:01ID: 25680824

You're welcome.

Interesting. It seems some browsers allow "normal" to be used as a way to refer to the browser's default font. Many browsers default to a serif font, so you don't see the difference in this case. The issue is that the font property declaration following the font-family declaration in the same rule overrides it, so the font-family declaration is essentially invisible. (IE5-8 are simply using the font-family from the header's parent element.) The solution is to reverse the order of the declarations or to use a single declaration.

h2 {
	font: 2em normal Times, Georgia, serif;
	padding-bottom: 1em;
}

                                              
1:
2:
3:
4:

Select allOpen in new window

 

by: EricBourlandPosted on 2009-10-28 at 09:26:54ID: 25685039

I was glad to be helpful. It's always interesting to see how other people set up their CSS. Probably I neglected to paste in my code -- though I seem to remember doing that -- hmm! In any case I'm very glad you got it fixed.

All best,

Eric

 

by: laughheartyPosted on 2009-10-30 at 12:00:27ID: 25705877

Kravimir that worked!

Thank you,
Every one!

A~

 

by: laughheartyPosted on 2009-10-30 at 12:04:20ID: 31645535

Thanks everyone, for the effort you put into the solutions.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...