ilikephp Posted May 30, 2010 Share Posted May 30, 2010 Hello, I have a form for example: Name: {Recordset.name_12} .... How can I set a style to make all the recordset bold. for input fields I type: input { ... } Is there a script for the recordset? Thx a lot... Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/ Share on other sites More sharing options...
haku Posted June 1, 2010 Share Posted June 1, 2010 I've never heard of an HTML recordset. Can you give more details? Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1065947 Share on other sites More sharing options...
ilikephp Posted June 1, 2010 Author Share Posted June 1, 2010 It's a php form. Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066308 Share on other sites More sharing options...
haku Posted June 2, 2010 Share Posted June 2, 2010 You are asking a CSS question - without seeing some HTML, there isn't much we can do to help. Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066455 Share on other sites More sharing options...
ilikephp Posted June 2, 2010 Author Share Posted June 2, 2010 This is my code: <td align="right"><strong>city<?php echo $row_Recordset['city_4']; ?></strong></td> If I want to apply a style I do this: <td align="right"><h2><strong>city:<?php echo $row_Recordset['city_4']; ?></strong></h2></td> what I need is to put a css style for all the recordset without setting the style for each Recordset. Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066659 Share on other sites More sharing options...
haku Posted June 2, 2010 Share Posted June 2, 2010 td { font-weight:bold; } That will get all td tags on your site though. Give each <td> tag a class (ex: <td class="something">) and then apply the style to that class: .something { font-weight:bold; } Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066677 Share on other sites More sharing options...
ilikephp Posted June 2, 2010 Author Share Posted June 2, 2010 for all my inputs and text area fields, I apply this css code: input, textarea, { border-width: 1px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #00C; font-weight: bold; } Because if I use .something{ font-weight:bold; } all td tags will be changed while in the upper code, only text areas are changed. there is no way instead of input or textarea { ...to put something for all recordset? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066693 Share on other sites More sharing options...
haku Posted June 2, 2010 Share Posted June 2, 2010 The problem is you still haven't shown your HTML output. Quote Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066717 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.