Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

formatting page/placement of buttons

 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • 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
 
Jai Parmar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like CSS:



Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic