css question
Posted: Mon May 22, 2006 1:44 pm
Pimptastic | Please use
This works fine. The style is applied. But when I try to apply that same style to a div dynamically created in php, it doesn't work:
Can anyone tell me why this is happening?
Thanks
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello all
I have a question regarding style sheets.
I have created a stylesheet 'general.css'. I've included it in the php file using the <link> tag.
Now when I apply a class to say a <div> tag:Code: Select all
<div class="header_div">Code: Select all
<?
echo '<div class="header_div">';
echo 'content';
echo '</div>';
?>Thanks
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]