how to apply CSS styles to elements directly in a PHP script?

vinit

New member
i had a php + mysql script for navigation bar but it gives output in vertical form. I want to change it in horixontal; form by using CSS.
 
You probably want to "float: left" your menu items.

You can "<link rel='stylesheet' type='text/css' href='...' />" for an external stylesheet or embed it directly within the HTML using "<style type='text/css'>...</style>".

You can also include a style attribute within your HTML tags, but I wouldn't recommend it.
 
Back
Top