smiley_kool Posted February 1, 2008 Share Posted February 1, 2008 hi. can some one tell me , how to create a button of our own design in html or using css i have to create a button of octagon shape but with different length of each side.. Quote Link to comment https://forums.phpfreaks.com/topic/88844-how-to-create-button-of-our-own-designits-urgent/ Share on other sites More sharing options...
SuperBlue Posted February 1, 2008 Share Posted February 1, 2008 http://www.phpfreaks.com/forums/index.php/topic,180035.0.html Dont double post! Are you talking about submit buttons?, or are you just trying to create a button from a link? In the last case, you could either use an image as link. Like this: <a href="http://www.brugbart.com/"><img src="image.jpg"></a> To create a hover effect, by shifting the image with another image. a.octagon { width: 60px; height: 120px; display: block; } a:link { background: url("image.jpg"); } a:visited { background: url("image.jpg"); } a:active { background: url("image.jpg"); } a:hover { background: url("image2.jpg"); } The trick would be to use a transparent gif or png, to create the shape you want. Quote Link to comment https://forums.phpfreaks.com/topic/88844-how-to-create-button-of-our-own-designits-urgent/#findComment-455091 Share on other sites More sharing options...
GameYin Posted February 1, 2008 Share Posted February 1, 2008 I would think to just use an image. Seems a lot easier then what you are trying to accomplish. Quote Link to comment https://forums.phpfreaks.com/topic/88844-how-to-create-button-of-our-own-designits-urgent/#findComment-455282 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.