Jump to content
Sign in to follow this  
Deep1234

font siz e and color

Recommended Posts

hello all,

i stored the data in db in field page_desc.

echo the field data works fine.

<?php echo stripslashes($pageDetails["page_desc"]);

but i want to change the color and font of each line of data  which is retrieved from page_desc.

how to do this..help me...

Share this post


Link to post
Share on other sites

The content that you are printing needs to already have HTML tags in it for the formatting. If it does not, then you will have to add them using string manipulation and that's complicated.

Once you have HTML tags, you can use CSS to change the style of sections that are wrapped in tags.

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...