Jump to content

style for recordset...


ilikephp

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.