|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Php ignores Css
I am rather new to php and adding code php code to html. I wrote a php, which worked with no problem. After I added some html along with some css styles, it hasn't worked correctly. Pretty much, it ignores all my css codes. Will styles interfere with this in anyway? I have looked over my code more than enough times and it looks a ok to me. I have narrowed it down to this small section. Did I do this wrong?
-------------------------------------------------------------------------------- <table style="border"> <tr> <td> <?php print "<table style="products">n"; while ( $a_row = mysql_fetch_row( $record ) ) { print "<tr>n"; foreach ( $a_row as $field ) print "t<td style="padding">$field</td>n"; print "</tr>n"; } print "</table>n"; mysql_close( $link ); ?> </td> </tr> </table> The only thing that is different is from my first script is the table that surrounds everything and the styles. Thanks for your help. |
|
#2
|
||||
|
||||
|
RE: Php ignores Css
|
|
#3
|
|||
|
|||
|
RE: Php ignores Css
Yeah, I saw that in another forum and tried it, but I still get the same problem. Here is the page... http://www.aardvarksafety.com/first...p?value=AERO004. And here is my code... http://www.aardvarksafety.com/first...results_css.txt. As you can see, I have done excatly what I have read. Any other ideas? Thanks. [/url]
|
|
#4
|
||||
|
||||
|
RE: Php ignores Css
You should be using "class", not "style".
Change <table style="products"> to be <table class="products">. Similarly for the td elements. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Php ignores Css |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|