• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

formatting page/placement of buttons

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have tried a lot but with only limited success to arrange 4 buttons in one line across a page 2 button on the center and 2 right justified.

I tried <div align="center"> and align="right" tags, but the buttons on the right go to the next line. like this
Button1Button2
Button3Button4

I also tried <span style="float:right"> but I could not get the other 2 buttons to come to the center.Moreover i have <HR> after this and when i use span the rules moves up between 2 pair of buttons
like
Button1Button2_____________________Button3Button4


Can someone help me with this formatting
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best way to formatting it is to create a table and then positioning it in the way that you described such as .

-------------------------------------------------------------
| B1 | B2 | | B3 | B4 |
-------------------------------------------------------------

That should solve your problem.

Jai
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like CSS:



Eric
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic