|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
Ive managed to now grab text from a database table and display it in a web browser using PHP (I have a header and a footer made out of HTML and the PHP file calls the 2 headers). However, I want to be able to style the text that is coming from the database using CSS. Can any one help me? Thanks |
|
#2
|
||||
|
||||
|
Just put some HTML in your php-code. I'm sure you format it before you output it, so just place some <span>-tags around it for example.
If you are just starting with CSS, try to build your site with div-styles. Make a good and nice layout, cut it in two and place your db-output in a div. In combination with CSS2 it'll look very good. In the general layout forum there are a lot of topics about this. Search for tableless and you will find it. I just started to use it and hey, it's a lot easier! Hope this answers your question a bit. Cheers,
__________________
Work to live, don't live to work |
|
#3
|
||||
|
||||
|
Check out the articles section in this very website. An article was written in the last few days about the basics of CSS.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Formatting data from database using CSS? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|