quelle Posted April 20, 2011 Share Posted April 20, 2011 I would really appreciate some help here, not actually with php but html. Whatever dimensions i put on my table row it doesn't change, the width stays as long as it can write "Ime" and next line "stranice". But in dreamweaver while im previewing it, its different, why !? :s <table width="848" border="0"> <form id="form" name="form" action="#" method="post" onsubmit="return validate_form();"> <tr bgcolor="#FFFF00"> <td width="35%" align="right">Ime stranice</td> <td width="65%"><input type="text" name="pagetitle" /></td> </tr> <tr bgcolor="#33CCCC"> <td align="right">Linklabel</td> <td><input type="text" name="linklabel" /></td> </tr> <tr bgcolor="#CCFFFF"> <td align="right" valign="top">Sadrzaj stranice</td> <td><textarea cols="100" rows="15" name="pagebody"></textarea></td> </tr> <tr> <td> </td> <td height="21"><input name="button" type="submit" value="Napravi" /></td> </tr> </form> </table> Quote Link to comment Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 Try changing the font sizes, and also try to define absolute widths. Then, try setting the width of the table itself to 100%. Quote Link to comment Share on other sites More sharing options...
quelle Posted April 20, 2011 Author Share Posted April 20, 2011 well acutally i don't need it 100% of the page but it seems ill need to make a div a put it within because it's the only solution ty Quote Link to comment Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 Note also, you can define a table-cell as a div/block with CSS so it will behave like one. See http://www.w3schools.com/css/pr_class_display.asp Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted April 20, 2011 Share Posted April 20, 2011 although this is not your question, You mind want to reconsider the use of tables for some more suitable elements. Tables are ideal for displaying data in a multi column manner. If you use them for pure layout purposes... don't use them! there are cleaner ways. Also a good idea is to seperate your style from your mark-up. (Use an external style sheet.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.