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.
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.
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.
Code:button { position:absolute; top:2px; // 2pixels or "units" from the top left:30px; // 30pixels or "units" from the bottom. }
olsen (06-10-2008)
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?
'Dat work for you?Code:<button style="position:absolute;top:2px;left:30px;">Button!</button>
Jeremy | jfein.net
olsen (06-10-2008)
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/cs...quare_buttons/
Jeremy | jfein.net
olsen (06-10-2008)
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.
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.
Jeremy | jfein.net
olsen (06-10-2008)
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)
Bookmarks