Hi, Unregistered. | Today's Posts

T-Shirt Forums
User Name
Password

Need to Register?

Forgot Your Password?


Site Navigation




+   T-Shirt Forums > T-Shirt Selling > Ecommerce Site Design
Discuss website design for ecommerce sites, useability, navigation and other development considerations

place email submit button on top of header



 
Share This Thread Thread Tools Search this Thread
Old August 20th, 2009 Aug 20, 2009 8:47:14 AM -   #1 (permalink)
T-Shirt Lover
T-Shirt Fan

ahhan's Avatar
 
Member Since: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default place email submit button on top of header

I been trying to place an email subscription text field and button on top of my header image ala johnnycupcakes.com but with no luck. Can anyone please let me know how to do this.

I am using dreamweaver. I have the header image inside a table which is centralize but have no idea how to place the text field and sign up button on top of it. Could it be AP Div?

Regards,
Ahhan
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 28th, 2009 Aug 28, 2009 1:35:43 AM -   #2 (permalink)
Forum Member
T-Shirt Member

spiros_saf's Avatar
 
You can call me: Spiros
Member Since: Aug 2009
Location: Greece
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

There are many ways to do what you ask.
Try creating an empty html page and pasting the following among the <body> tags.

HTML Code:
<table align="center" bgcolor="#999999" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div style="height:300px; width:600px; background-image:url(http://img269.imageshack.us/img269/4738/backuvn.gif); position:relative">
    <div style="position:absolute; top:270px; left:300px">
        <form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
    </div>
</div>
</td>
</tr>
<tr>
<td>Your Content Here
</td>
</tr>
<tr>
<td>..and here..
</td>
</tr>
<tr>
<td>..and here..
</td>
</tr>
<tr>
<td>..and here..
</td>
</tr>
</table> 
In case you didn't make it you can view the example by clicking here.

I haven't applied any styling to the texts or the input boxes of the form in order to keep the example as simple as possible.

If you would like to I could show you some tips. You just have to ask
__________________
Safras Spiros @ Stabissimo.com
Stabissimo Flash T-shirt Designer For Your Website.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 28th, 2009 Aug 28, 2009 5:59:35 AM -   #3 (permalink)
Forum Member
T-Shirt Apprentice

signchef's Avatar
 
Member Since: May 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

what cutting blade do i want to use for cutting small text out of vinyl please help as i dont normaly do small text as i normal do sign for catering trailer please help please
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 28th, 2009 Aug 28, 2009 6:59:47 AM -   #4 (permalink)
T-Shirt Lover
T-Shirt Aficionado

dmfelder's Avatar
 
Member Since: Oct 2008
Posts: 119
Thanks: 2
Thanked 8 Times in 8 Posts


Default Re: place email submit button on top of header

There are definitely many ways to do it, and a form is one of the easiest; however, even simpler is a quick hypertext link that generates an email: <a href="mailto:someone@yoursite.com">Email Us</a> When a user clicks on "Email Us" is will generate an email.

For even more flexibility, just use this link which also contains a subject: <a href="mailto:address@domain.com?subject=Your Subject Line">

If you'd like a detailed example of a form (that can nearly be copied and pasted), visit our internet shirt fulfillment site, http://greatapparelforyou.com/fulfillment_services.htm. Go to the contact us page, right-click your mouse, and "view source." You can see the code we used to generate a form that gathers relavant data and automatically sends it to us. In fact, there's even javascript code that forces someone to click a checkbox before submitting the information.

Best of luck!
__________________
Eco-Friendly printing at GreatApparelForYou.com for organic tshirts and Direct to Garment Printing in Chicago, Illinois including shirt web fulfillment, and Funny Tees at gafy.com!
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 28th, 2009 Aug 28, 2009 7:33:08 AM -   #5 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

ahhan's Avatar
 
Member Since: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Great! this is certainly helpful. Thanks.
Ahhan
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 28th, 2009 Aug 28, 2009 9:22:44 AM -   #6 (permalink)
Forum Member
T-Shirt Member

spiros_saf's Avatar
 
You can call me: Spiros
Member Since: Aug 2009
Location: Greece
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

If what you want is an "E-mail Us" link and not a "Sign Up to our newsletter list" form like johnnycupcakes you may easily replace the content of the inner <div> of my example with what dmfelder suggests.

However if what you want is to make a newsletter list you will definately need a script (php, asp etc.) that will add user's e-mail address to a database or just send you a simple e-mail containing the e-mail address provided by the user.

The second method is much easier than the first one and needs very little knowledge of a scripting language. In case you need an example help feel free to ask.
__________________
Safras Spiros @ Stabissimo.com
Stabissimo Flash T-shirt Designer For Your Website.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 28th, 2009 Aug 28, 2009 9:41:58 AM -   #7 (permalink)
T-Shirt Lover
T-Shirt Ninja

pukingdeserthobo's Avatar
 
You can call me: john
Member Since: Jun 2008
Location: lancaster ca
Posts: 924
Thanks: 8
Thanked 131 Times in 126 Posts


Default Re: place email submit button on top of header

Quote:
Originally Posted by signchef
what cutting blade do i want to use for cutting small text out of vinyl please help as i dont normaly do small text as i normal do sign for catering trailer please help please
lol you are way of subject
__________________

 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 29th, 2009 Aug 29, 2009 2:26:42 AM -   #8 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

ahhan's Avatar
 
Member Since: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Spoke too soon!... I still could not replicate how you(Spiros) build this. Not sure if you used DW, but I tried using table as a base, but could not figure out what type of div did you use to have it sitting inside the top row of the table. Can Mr. Safras Spiros please enlighten me on what are the steps in achieving these.

Thanks,
Ahhan
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 29th, 2009 Aug 29, 2009 3:43:46 AM -   #9 (permalink)
Forum Member
T-Shirt Member

spiros_saf's Avatar
 
You can call me: Spiros
Member Since: Aug 2009
Location: Greece
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Smile Re: place email submit button on top of header

Ok, lets do it step by step.

Lets suppose we have a blank html page with the following code:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My example</title>
</head>

<body>
</body>

</html> 
As you can see it's nothing more than a blank html page.

Now lets add a simple table and place it in the center of our page. We will do it by adding the following code between the <body> tags.

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My example</title>
</head>

<body>
<table align="center" bgcolor="#999999" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>My header will be here</td>
</tr>
<tr>
<td>Your Content Here</td>
</tr>
<tr>
<td>..and here..</td>
</tr>
<tr>
<td>..and here..</td>
</tr>
<tr>
<td>..and here..</td>
</tr>
</table> 
</body>

</html> 
Since our webpage's background is white we set the color of the table to be #999999. We also centered the table in the page.

Now lets see. We have a webpage. Our webpage's content will be put in a table. The table will be in the center of the page and the first row of that table will be our header.

So let's focus on the code that will be on our header.

But first of all let's think of what we need to do. We want a photo (the header image/graphic) and inside that photo we want to add some elements (text, input box, submit button).

Ok. What we will do is create a <div>, set it's width and height and also set a background image. Let's do it.

HTML Code:
<div style="height:300px; width:600px; background-image:url(http://img269.imageshack.us/img269/4738/backuvn.gif)">

</div> 
Think of that little div as some kind of a box.
We havent placed any content to it yet but we have set some of it's properties.
Width and height are pretty much self explained.

Now, what about the background? Isn't it some kind of content?

Well, we may be able to see it appearing inside of our "box" but think of it as being on a very low level that will let other stuff be put inside it. Let's say that it may be viewable but it doesn't really exist.

We like that aspect because since it doesn't really exist we may put anything else we like inside that little box, which in our case is the 'Sign Up to our newsletter list" kind of form.

Let's make a plan on how we will move. Will we just write the code of our form inside that <div> we created earlier?

No. And that's because if we do that our form will appear on the upper left corner of our header and that's not what we want. We want to "position" it on the down-right corner of our header.

As you guessed "position" is the magic word. Our sweet little "boxes" (the <div> elements) apart from the properties of width, height and background also have a group of proterties that's used in order to position them.

Please also note that one <div> may be positioned "relatively" to another <div> when the first <div> is inside the second one.

And that's what we will do next. We will create another <div> that will contain the code of our form. Next we will place the new div inside the first one we created in this tutorial and "position" it as we like.

So, let's see what the code of the new <div> will look like:

HTML Code:
<div>
<form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
</div> 
As you can see, it's nothing more that a form wrapped in the <div> tags.

Ok. Next step. Let's place the new <div> inside the other. It should look something like this:

HTML Code:
<div style="height:300px; width:600px; background-image:url(http://img269.imageshack.us/img269/4738/backuvn.gif)">

<div>
<form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
</div>

</div> 
Ok! So are we done? Can I go and rule the world with my super-header now?

NO! Did I mention anything about the positioning properties of those two divs? Sit down we are not finished yet

But we are close.

Now we have to set the position properties of our outer and inner divs.

What we will add to the properties of our outer-div is this "position:relative"

What we will add to the properties of our inner-div is this "position:absolute; top:270px; left:300px"

Our code will look something like this:

HTML Code:
<div style="height:300px; width:600px; background-image:url(http://img269.imageshack.us/img269/4738/backuvn.gif); position:relative">

<div style="position:absolute; top:270px; left:300px">
<form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
</div>

</div> 
Ok now. Plain english please?

What we have done is this. Most of you since you are at the t-shirt manufactiring business have used at least once in your life a graphics program like photoshop, fireworks, corel, illustrator etc. So you are familiar with the idea of positioning an element to a space using the x and y axis. Here we have set the x (property: left) of the inner div (this is our form) to be 300px and the y (property: top) of the inner div to be 270px.

And by the property position of our outer div which we set as "relative" and the property position of the inner div which we set as "absolute" what we have achieved is this. We have set the (0,0) point of our x and y axis to be the upper left corner of our outer div.

By changing the "top" and "left" properties of the inner-div obviously we can move it as we like.

Now let's add this code to our webpage and see what we have done.

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My example</title>
</head>

<body>
<table align="center" bgcolor="#999999" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div style="height:300px; width:600px; background-image:url(http://img269.imageshack.us/img269/4738/backuvn.gif); position:relative">
 
 <div style="position:absolute; top:270px; left:300px">
 <form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
 </div>
 
 </div>
</td>
</tr>
<tr>
<td>Your Content Here</td>
</tr>
<tr>
<td>..and here..</td>
</tr>
<tr>
<td>..and here..</td>
</tr>
<tr>
<td>..and here..</td>
</tr>
</table> 
</body>

</html> 
As mentioned on my previous post you can see the example by clicking here.

Ok! It looks like we are ready! Don't forget that in order to make it work you must have a form.php file with a script that will handle the data recieved by the form. But it's not a PHP tutorial. This tutorial was intented to show you how to place an element inside a photo and I think that we are ok with that! In case you need any help with the PHP part feel free to ask.

Now go and rule the world with your high-tech super header!
__________________
Safras Spiros @ Stabissimo.com
Stabissimo Flash T-shirt Designer For Your Website.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 29th, 2009 Aug 29, 2009 11:07:32 AM -   #10 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

ahhan's Avatar
 
Member Since: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Wow, thanks! I like the way you wrote the tutorial. Funny and entertaining!:-).

What I have done is the first image would be my header, which is in the div. I have added another background image outside of the div. Everything work well in IE but in Firefox the bg image shifted once I resize the window. How can I fix this?

The additional code is:

body {
background-image: url(Image/bg.jpg);
background-position: center center;
margin-top: 0px;
margin-bottom: 0px;

Best Regards,
Ahhan
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 29th, 2009 Aug 29, 2009 11:38:34 AM -   #11 (permalink)
Forum Member
T-Shirt Member

spiros_saf's Avatar
 
You can call me: Spiros
Member Since: Aug 2009
Location: Greece
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Quote:
Originally Posted by ahhan
Wow, thanks! I like the way you wrote the tutorial. Funny and entertaining!:-).

What I have done is the first image would be my header, which is in the div. I have added another background image outside of the div. Everything work well in IE but in Firefox the bg image shifted once I resize the window. How can I fix this?
Well I hope you had the same fun reading it as I had writing it!

What do you mean by "shifted"?

Could you please copy/paste the code of your page or even better give a link of what you have done to have a look at?
__________________
Safras Spiros @ Stabissimo.com
Stabissimo Flash T-shirt Designer For Your Website.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 29th, 2009 Aug 29, 2009 1:32:25 PM -   #12 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

ahhan's Avatar
 
Member Since: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Its still in WIP. It shifted horizontally. Basically the header image and the bg image need to align because they function as a base for text above them.

They look fine when the window the full screen but when I minimize the window the bg shifted horizontally(only with Firefox).

The code is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-image: url(Image/bg.jpg);
background-position: center center;
margin-top: 0px;
margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="1058" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<div style="height:249px; width:1058px; background-image:url(Image/header.gif); position:relative ">


<div style="position:absolute; top:26px; left:656px">
<form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
</div>

</div>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 29th, 2009 Aug 29, 2009 2:50:09 PM -   #13 (permalink)
Forum Member
T-Shirt Member

spiros_saf's Avatar
 
You can call me: Spiros
Member Since: Aug 2009
Location: Greece
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Ok, I see what the problem is.

Actually if you notice many websites that use the structure of your website face the same problem.

Just take a look at johnnycupcakes.com and try to resize your window using Mozilla and IE. In Mozilla the background won't stay stable.

There is a workaround for this though. Just upload to imageshack or wherever you are able to do so the two photos you use as a background and as a header and give me a link of them. Tommorow (it's 1a.m. here) I will show you how to solve that problem.
__________________
Safras Spiros @ Stabissimo.com
Stabissimo Flash T-shirt Designer For Your Website.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 30th, 2009 Aug 30, 2009 1:50:25 AM -   #14 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

ahhan's Avatar
 
Member Since: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

That's exactly what I meant. Ok in IE but in Mozilla, the bg shifted...:-(. Please follow the link below to the images, thanks!

Ahhan

 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old August 30th, 2009 Aug 30, 2009 2:34:59 AM -   #15 (permalink)
Forum Member
T-Shirt Member

spiros_saf's Avatar
 
You can call me: Spiros
Member Since: Aug 2009
Location: Greece
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: place email submit button on top of header

Goodmorning!!!

You are ready!

Take a look at the example by clicking here

Here is the code:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Example</title>
</head>

<body bgcolor="#4D1312">
<table align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div style="height:203px; width:1058px; background-image:url(headercoa.gif); position:relative">
    <div style="position:absolute; top:130px; left:650px">
        <form action="form.php" enctype="multipart/form-data" method="post">Enter E-mail: <input type="text" name="email" /><input type="submit" value="Send" /></form>
    </div>
</div>
</td>
</tr>
<tr>
<td style="background-image:url(bg_main.gif); background-repeat:repeat-y">
    <table cellpadding="0" cellpadding="0" border="0" align="center" width="735">
    <tr>
    <td>
    <br /><br />
    Here you may put your website's content!!<br /><br />
    <br /><br />
    </td>
    </tr>
    </table>
</td>
</tr>
<tr>
<td>
<div style="height:275px; width:1058px; background-image:url(footerirb.gif); position:relative">
</div>
</td>
</tr>
</table>
</body>
</html> 
I changed the middle photo with this one here

If you managed to follow the tutorial you can understand the code above. I didn't apply any styling to the letters so as to keep the example as simple as possible.

Well, you can now resize it, hit it, shoot it or do whatever you want with it.

Please let me know if it worked for you!
Have a nice day!
__________________
Safras Spiros @ Stabissimo.com
Stabissimo Flash T-shirt Designer For Your Website.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!


This is a discussion about place email submit button on top of header that was posted in the Ecommerce Site Design section of the forums.

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SPREADSHIRT] Vanishing header Maaarghhh SpreadShirt 3 July 8th, 2009 06:03 AM
Email Form: break apart email address...How? T-BOT Ecommerce Site Design 22 December 4th, 2008 11:18 AM
Something with my cubecart header :P xbrandon408x Ecommerce Site Design 9 July 4th, 2008 12:25 AM


All times are GMT -8. The time now is 09:45 PM.


Copyright 2004-2009 T-ShirtForums.com. All rights reserved.