Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Button

  1. #1
    Join Date
    May 2008
    Posts
    17
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Button

    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.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.
    }

  3. The Following User Says Thank You to Medyman For This Useful Post:

    olsen (06-10-2008)

  4. #3
    Join Date
    May 2008
    Posts
    17
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    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?

  5. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    <button style="position:absolute;top:2px;left:30px;">Button!</button>
    'Dat work for you?
    Jeremy | jfein.net

  6. The Following User Says Thank You to Nile For This Useful Post:

    olsen (06-10-2008)

  7. #5
    Join Date
    May 2008
    Posts
    17
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Yes, thank you, if you could make it a small, pretty red round button instead of a pushbutton.

  8. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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

  9. The Following User Says Thank You to Nile For This Useful Post:

    olsen (06-10-2008)

  10. #7
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    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.

  11. #8
    Join Date
    May 2008
    Posts
    17
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thank you, so say that I do have a red.gif, how would you place it?

  12. #9
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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

  13. The Following User Says Thank You to Nile For This Useful Post:

    olsen (06-10-2008)

  14. #10
    Join Date
    May 2008
    Posts
    17
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •