jxbma
asked on
Whats the best way to center vertically/horizontally allign multiple text lines in a <div>?
Hi:
I've got a page that's made up of several colored <div>s arranged in blocks.
I've got a couple of fields data (name, price, quantity) that I need to display in each div.
I'd like this to appear on 3 lines of text.
I'd like these groups of fields to be centered both vertically and horizontally in each <div>.
What's the best way to do this?
Should I created a table that's vertically/horizontally centered within each <div>?
Is there a better/easier/cleaner way to do this?
Thanks,
JB
Text-Field-Alignment-in-Divs.png
I've got a page that's made up of several colored <div>s arranged in blocks.
I've got a couple of fields data (name, price, quantity) that I need to display in each div.
I'd like this to appear on 3 lines of text.
I'd like these groups of fields to be centered both vertically and horizontally in each <div>.
What's the best way to do this?
Should I created a table that's vertically/horizontally centered within each <div>?
Is there a better/easier/cleaner way to do this?
Thanks,
JB
Text-Field-Alignment-in-Divs.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Tables are for tabular data. If you have tabular data (which you do) then use tables
tagit is right
tagit is right
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You guys rock.
Thx,
JB
Thx,
JB
http://getbootstrap.com/css/#overview-container