Jump to content

font siz e and color


Deep1234

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...

Link to comment
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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...