Deep1234 Posted April 6, 2020 Share Posted April 6, 2020 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 More sharing options...
Ingolme Posted April 7, 2020 Share Posted April 7, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now