View Full Version : Button
olsen
06-10-2008, 02:46 AM
I need to place a button on a coordinate. I think I need a x,y and z value, but don't know how to place it.
Medyman
06-10-2008, 02:56 AM
In what kind of application do you need to place this button?
You probably won't need a z-coordinate, unless you're using some type of binary application that can produce 3D applets.
In 2D screen media, using CSS, you can use absolute positioning.
button {
position:absolute;
top:2px; // 2pixels or "units" from the top
left:30px; // 30pixels or "units" from the bottom.
}
olsen
06-10-2008, 03:24 AM
Thank you, that works. I don't actually need the CSS because I need a new location for each html button. How would you put that into the xhtml?
<button style="position:absolute;top:2px;left:30px;">Button!</button>
'Dat work for you?
olsen
06-10-2008, 03:37 AM
Yes, thank you, if you could make it a small, pretty red round button instead of a pushbutton.
It cannot become a small red round pretty button without images. So check this out:
http://www.dynamicdrive.com/style/csslibrary/item/css_square_buttons/
codeexploiter
06-10-2008, 03:42 AM
You can set a background-image for the button element. It always improve the readability of the HTML code if you avoid inline CSS. You can place your styles in a separate CSS file include them in your web page apply the CSS class on the element that needs to be handled properly.
olsen
06-10-2008, 03:42 AM
Thank you, so say that I do have a red.gif, how would you place it?
Well, post you red.gif and I'll make it work with the script that I sent you. Once you send it to me, I'm gonna send you the script and the images, why you ask "images", I'm gonna split the image.
olsen
06-10-2008, 04:15 PM
Thank you but I have a couple of problems. I don't know how to get it to you, firstly, and secondly I have problems with my w3 validation so I'll be back (unless you have advice on w3)
To get it to me, upload it at www.localhostr.com or www.imageshack.us.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.