Beginner CSS and PHP Styling Question
Posted: Mon Jan 18, 2010 4:45 pm
I am having issues attempting to apply a style to a inline php statement. I am getting the viewer's username and I would like to create a link to their profile when they click on their name. I am using Dreamweaver and can see that the correct style is applied to the Hyperlink Tag itself, but the PHP statement is obtaining the paragraph styling from the "blog_body" DIV. I am new to website development and have obtained a template for this layout, so I have just fiddled around with the style sheet. I'm just confused as to why I can't apply the correct style to a PHP statement. Thank you for any assistance, and I apologize for the low level question!
Code: Select all
<div class="blog_body">
<div class="blog_bottom">
<div class="right">
<h2>Control Panel</h2>
<p>Welcome, <a href="custProfile.php" /><?php echo $_SESSION['uname']; ?></a></p>
<ul>
<li><a href="#">Philosophy</a></li>
<li><a href="#">We love what we do</a></li>
<li><a href="#">Content is King</a></li>
<li><a href="#">Valid HTML, valid CSS</a></li>
<li><a href="#">Team</a></li>
<li><a href="#">Jobs</a></li>
</ul>
<p> </p>
<p> </p>
</div>