Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

I need to create another button.

Posted on 2009-07-14
19
Medium Priority
?
193 Views
Last Modified: 2012-05-07
I bought some buttons and I need a LOGOUT button like my LOGIN
Can someone help me with this?

log-in.gif
0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 7
  • 2
19 Comments
 
LVL 10

Assisted Solution

by:racmail2001
racmail2001 earned 1328 total points
ID: 24856920
do you have the fonts and the psd for the button?

then you sould edit the text and replace it with what you need

if what you have it's only a picture it's a litle bit more complicated - but not impossible

the button usually it's composed from 3 parts
1. the left part (a left border  top and bottom left corners and a background color)
2. the middle part (a top and bottom border and a background color)
3. the right part (a right border  top and bottom left corners and a background color)

so what you need to do is to separate this parts in different layers

the most important is the middle part where you text will be
so you can get a 2-3 pixel selection where is no text from the middle part and transform it (change the width to cover all the old text)

now you have a blank button and you can put the new text over it

0
 
LVL 12

Expert Comment

by:Tony van Schaik
ID: 24857197
Just grab one of the gradient styles here:
http://www.dezinerfolio.com/2007/05/06/ultimate-web-20-layer-styles
http://www.dezinerfolio.com/2007/03/14/ultimate-web-20-gradients-free-download
http://www.dezinerfolio.com/2008/11/19/220-amazing-free-photoshop-layer-styles

Now you just have to create a rounded rectangle or with a rectangular marquee make a square and then go to Select > Modify > Smooth > for example radius 3px. And then fill it with white. And apply one of those layer styles or gradients.
And then in the CSS you can use the sliding doors technique in the CSS to use just 2 images, you can slice those up in Photoshop left part is 3px and right part is 197px. Below an example snippet that i have created for the use in Sharepoint
Good luck

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
#workflowbutton {
	font:bold 11px Tahoma, Arial, Helvetica;
	margin:0px;
	padding:0px;
	display: block;
	width:100%;
}
 
#workflowbutton ul {
	float:left;
	width:480px;
	line-height:32px;
	list-style:none;
	margin:0;
	padding:0 15px 0 0px;
}
 
#workflowbutton li {
	display:inline;
	padding:0;
}
 
#workflowbutton li img {
	padding-right:5px;
	vertical-align:middle;
	border:none;
}
 
#workflowbutton a {
	color:#436ed5; /* need because it will use default link color */
	float:left;
	padding:0 3px 0 3px; /* left 3 px because of left.png image */
	text-decoration:none;
	background: url(images/left.png) no-repeat left center;
}
 
#workflowbutton a span {
	display:block;
	float:none;
	padding:0 10px 0 7px;
	background:url(images/right.png) no-repeat right center;
}
 
#workflowbutton a:hover {
	background: url(images/left-hover.png) no-repeat left center;
}
 
#workflowbutton a:hover span {
	background:url(images/right-hover.png) no-repeat right center;
	color:#1542ad;
}
</style>
</head>
<body>
<div id="workflowbutton">
  <ul>
    <li><a href="#" title="Cancelled"><span><img src="images/icons/cancelled.png" width="16" height="16">Cancelled</span></a> </li>
    <li><a href="#" title="Completed"><span><img src="images/icons/completed.png" width="16" height="16">Completed</span></a></li>
    <li><a href="#" title="Expired"><span><img src="images/icons/expired.png" width="16" height="16">Expired</span></a></li>
    <li><a href="#" title="Expiring"><span><img src="images/icons/expiring.png" width="16" height="16">Expiring</span></a></li>
    <li><a href="#" title="Fualting"><span><img src="images/icons/faulting.png" width="16" height="16">Faulting</span></a></li>
    <li><a href="#" title="Has New Events"><span><img src="images/icons/hasnewevents.png" width="16" height="16">Has New Events</span></a></li>
    <li><a href="#" title="Locked"><span><img src="images/icons/locked.png" width="16" height="16">Locked</span></a></li>
    <li><a href="#" title="Not Started"><span><img src="images/icons/notstarted.png" width="16" height="16">Not Started</span></a></li>
    <li><a href="#" title="Running"><span><img src="images/icons/running.png" width="16" height="16">Running</span></a></li>
    <li><a href="#" title="Suspended"><span><img src="images/icons/suspended.png" width="16" height="16">Suspended</span></a></li>
    <li><a href="#" title="Terminated"><span><img src="images/icons/terminated.png" width="16" height="16">Terminated</span></a></li>
    <li><a href="#" title="Edit Workflow"><span><img src="images/icons/edit.png" width="16" height="16">Edit Workflow</span></a></li>
    <li><a href="#" title="Start Workflow"><span><img src="images/icons/start.png" width="16" height="16">Start Workflow</span></a></li>
    <li><a href="#" title="Delete Workflow"><span><img src="images/icons/delete.png" width="16" height="16">Delete Workflow</span></a></li>
    <li><a href="#" title="View Workflow"><span><img src="images/icons/workflow.png" width="16" height="16">View Workflow</span></a></li>
    <li><a href="#"title="Add Workflow"><span><img src="images/icons/add.png" width="16" height="16">Add Workflow</span></a></li>
  </ul>
</div>
</body>
</html>

Open in new window

images.zip
0
 
LVL 12

Expert Comment

by:Tony van Schaik
ID: 24857231
This is how your image would be sliced:
buttonslice.jpg
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:mathieu_cupryk
ID: 24859827
I like the way u set this up. It is clean let me try it out tonight. I am just diappointed that I purchased buttons and now I have to create them
0
 

Author Comment

by:mathieu_cupryk
ID: 24876241
I tried it out I get the following image.

Something is wrong.
workflow.png
0
 

Author Comment

by:mathieu_cupryk
ID: 24876317
Something is missing Is this what it should look like.

somethingmissing.png
0
 
LVL 12

Expert Comment

by:Tony van Schaik
ID: 24876416
Do you have the HTML and CSS for your website so i can check if there's an error.
0
 

Author Comment

by:mathieu_cupryk
ID: 24883478
Something seems wrong with the right.png image?
PlEASE CAN U CHECK TO SEE IF IT IS CORRECT.

THANKS.
ALSO SHOULDIT BE A CLASS OR ID?

#workflowbutton li img {
      padding-right:5px;
      vertical-align:middle;
      border:none;
}
 
#workflowbutton a {
      color:#436ed5; /* need because it will use default link color */
      float:left;
      padding:0 3px 0 3px; /* left 3 px because of left.png image */
      text-decoration:none;
      background: url(../../Images/Buttons/left.png) no-repeat left center;
}
 
#workflowbutton a span {
      display:block;
      float:none;
      padding:0 10px 0 7px;
      background:url(.../../Images/Buttons/right.png) no-repeat right center;
}
 
#workflowbutton a:hover {
      background: url(../../Images/Buttons/left-hover.png) no-repeat left center;
}
 
#workflowbutton a:hover span {
      background: url(../../Images/Buttons/right-hover.png) no-repeat right center;
      color:#1542ad;
}


In firefox:
http://localhost:50410/App_Themes/OmegaLove/StyleButton.css
 
#workflowbutton a span (line 76)
 
{
 
display: block;
 
float: none;
 
padding-top: 0pt;
 
padding-right: 10px;
 
padding-bottom: 0pt;
 
padding-left: 7px;
 
background-color: transparent;
 
background-image: url(.../../Images/Buttons/right.png);
 
background-repeat: no-repeat;
 
background-attachment: scroll;
 
background-position: right center;
 
}
 
#workflowbutton a:hover span (line 87)
 
{
 
background-color: transparent;
 
background-image: url(../../Images/Buttons/right-hover.png);
 
background-repeat: no-repeat;
 
background-attachment: scroll;
 
background-position: right center;
 
color: #1542ad;
 
}
---------------------------------------------------------------------------
http://localhost:50410/App_Themes/OmegaLove/StyleBase.css
 
a (line 33)
 
{
 
color: #3a3a3a;
 
text-decoration: none;
 
}
 
a:hover (line 38)
 
{
 
color: #ff9933;
 
text-decoration: none;
 
}
http://localhost:50410/App_Themes/OmegaLove/StyleSheet.css
 
a:link (line 166)
 
{
 
text-decoration: none;
 
}
 
a:hover (line 176)
 
{
 
text-decoration: underline;
 
}
http://localhost:50410/App_Themes/OmegaLove/StyleButton.css
 
#workflowbutton a (line 68)
 
{
 
color: #436ed5;
 
float: left;
 
padding-top: 0pt;
 
padding-right: 3px;
 
padding-bottom: 0pt;
 
padding-left: 3px;
 
text-decoration: none;
 
background-color: transparent;
 
background-image: url(../../Images/Buttons/left.png);
 
background-repeat: no-repeat;
 
background-attachment: scroll;
 
background-position: left center;
 
}
 
#workflowbutton a:hover (line 83)
 
{
 
background-color: transparent;
 
background-image: url(../../Images/Buttons/left-hover.png);
 
background-repeat: no-repeat;
 
background-attachment: scroll;
 
background-position: left center;
 
}

Open in new window

0
 

Author Comment

by:mathieu_cupryk
ID: 24929205
Can u pleasehelp me build the logout button
0
 
LVL 12

Expert Comment

by:Tony van Schaik
ID: 24941585
Don't you have the PSD file of that login button or did you only bought the GIF file.
0
 
LVL 12

Accepted Solution

by:
Tony van Schaik earned 672 total points
ID: 24941655
Ok try this one i build the login button without an unordered list, just with a div class. You can download my PSD used for this here: http://www.mediafire.com/?sharekey=5e9a6e30add98fece7ba8e3c6e11ce2050629b6037402a305be6ba49b5870170.
Good luck

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Login button</title>
<style type="text/css">
.button {
	font:bold 12px "Segoe UI", Tahoma, Arial, Helvetica;
	width:100%;
	line-height:32px;
	list-style:none;
	margin:0;
	display:block;
	padding:0 15px 0 0px;
}
.button a span {
}
.button a {
	color:#fff; /* need because it will use default link color */
	float:left;
	padding:0 8px 0 8px;
	text-decoration:none;
	background: url(images/left.png) no-repeat left center;
}
.button a span {
	display:block;
	float:none;
	background:url(images/right.png) no-repeat right center;
	padding-top: 0;
	padding-right:11px;
	padding-bottom: 0;
	padding-left: 4px;
}
.button a:hover {
	background: url(images/left-hover.png) no-repeat left center;
}
.button a:hover span {
	background:url(images/right-hover.png) no-repeat right center;
	color:#fff;
}
</style>
</head>
<body>
<div class="button"><a href="#" title="Login"><span>This is your login button</span></a></div>
<div class="button"><a href="#" title="Login"><span>This one too</span></a></div>
</body>
</html>

Open in new window

images.zip
0
 

Author Comment

by:mathieu_cupryk
ID: 24942328
I only bought the gifs. I will try the other method. Thank you for understanding. It is tough to be alone and programming.
0
 
LVL 12

Expert Comment

by:Tony van Schaik
ID: 24942551
Did you tried my above code i have also added a link for you with the Photoshop PSD file? If my respond takes a little longer, i'm on a holiday :)
0
 

Author Comment

by:mathieu_cupryk
ID: 24949274
i was sick all week. I am working on it today. sorry for the delay
0
 

Author Comment

by:mathieu_cupryk
ID: 25020176
Hi there, I have tried everything out. I looked at everything you sent me. I appreciate it.
I need to create a logout button with the arrow similar to th login.

log-in.gif
0
 
LVL 12

Expert Comment

by:Tony van Schaik
ID: 25020709
Ok i will create a example for you again but usually in need that PSD file for that button i will try to recreate it. Because using ours will be crap :) when copy/slicen and pasting.
0
 

Author Comment

by:mathieu_cupryk
ID: 25023073
I join mediafire. This is great. I will be waiting for the button. I think the attributes are Arial 13pt.
Bold  Strong for the text.
Thanks.
0
 
LVL 10

Assisted Solution

by:racmail2001
racmail2001 earned 1328 total points
ID: 25023222
it's ok this button?
log-out.gif
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
The Summer 2017 Scholarship Winners have been announced!
In this tutorial viewers will learn how to correct colors in Photoshop using the Hue and Saturation adjustment Open a photo for editing in Photoshop: Begin by creating a new adjustment layer by going to Layer > New Adjustment Layer > Hue and Saturat…
In this tutorial viewers will learn how to create a Photoshop action to apply adjustments and effects to multiple images. Open a photo for editing in Photoshop: Open the Actions window by going to Window > Actions: Start a new action by selecting th…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question