Can you make a fixed navigation bar without css and only with html coding?
Can you make a fixed navigation bar without css and only with html coding?
Best answer:
Yes, what ever done in css can be done without css. You only need to set the attributes where and when you need them.
Tags: coding, fixed, html., navigation, only, without
Under Forum

2 Comments for Can you make a fixed navigation bar without css and only with html coding?
1. Chas | January 26th, 2007 at 3:23 am
If you mean ‘fixed’ as the page scrolls under it, no, not with html alone. That’s the great thing about CSS, being able to float containers around and under it.
That said, I’ll amend it and say I’ve never seen it done with html alone although I’ve seen some really tricky nav bars built into a ‘fixed’ background that worked pretty well.
2. Opal | January 26th, 2007 at 3:30 am
Are you talking about fixed as in it doesn’t move?
You can add styling to an element without using an external cascading style sheet, but in order to define the properties for that element, you still have to know the “language” of css. e.g. -
blah
Everything you see after style=” are the same things you would put in an external css. So regardless of whether you use one or just add the styles to the element tag itself like in my example, you still have to know what to type. So to answer your question, no you cannot use just html to set a fixed position to an element.
Actually, floating is a better way to layout divs/elements/tables. Here is an example of how it works -
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
objects floating left
Objects floating right
1 object float left and 1 floating right
Leave a Comment for Can you make a fixed navigation bar without css and only with html coding?
You must be logged in to post a comment.
Trackback this post | Subscribe to the comments via RSS Feed