I still have one question: why is my <div.container> still positioned left in Design Mode in FrontPage, whereas, when being viewed in a browser, the DIV is positioned centrally???
I still have one question: why is my <div.container> still positioned left in Design Mode in FrontPage, whereas, when being viewed in a browser, the DIV is positioned centrally???
Like Dreamweaver, the Frontpage design view isn't an exact science. Pay very little attention to it. If it validates and displays correctly in browsers, that's all that matters.
In your example i would use two more divs rather than the two spans. Span should be used for styling short bits of text i.e a line in a paragraph.
I've tried using two DIVs, but the problem is they do not stay in place side by side (on one line visually), but rather the second DIV jumps below the first one. There has to be a way to keep them in horizontally aligned visually speaking, it it just I don't know how to do that. Would you explain how to do that? Thank you.
Thank you guys for your replies. Could anybody answer my question about <span> width please?
Span is an inline element which means it has no width other than the width of its content.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Bookmarks