| Web Design & Programming Building websites, coding scripts or developing apps? html, css, javascripts, ajax, php, asp, java, c+, C++ and other geeky info is here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Status: Junior Member Join Date: Jul 2009 Posts: 1
![]() | I have a table in dreamweaver and I want to centre all the text in all the cells. The alignment is currently set to default and the text is aligned left. The table is within a div tag but when I give the div tag the CSS property of text alignment centre, the cells don't align centre. perhaps I don't understand how inheriting in CSS works so any help work be appreciated. |
| | |
| | #2 (permalink) |
| Status: Junior Member Join Date: Jul 2009 Posts: 2
![]() | If you're going to be using a table anyway, why don't you just select all the cells and center them? Otherwise, give your table an ID <table id="bob"> and in your CSS specify the text alignment for the cells. <style type="text/css"> #bob {text-align: center} </style> |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |