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... 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? 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. 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. 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. 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; } 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 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. Link to comment https://forums.phpfreaks.com/topic/203365-style-for-recordset/#findComment-1066717 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.