Forum Moderators: not2easy
Just not a good enough reason to go back to the "crap" you had before.Yes, you're right. I didn't really go back to it -- yet. A friend is helping me with the project -- to keep going with the latest scheme.
Why would you want the html structure be so that you need a "separate DIV" for the client list ?I'm not even keen on what a DIV is. DIVs were suggested as a way to "compartmentalize" the two fields the page should have, while also side stepping the limitations of tables. The layout is basically the same as a Google My Map. A Google My Map has two fields (which we'll call "columbs") -- a narrow one on the left containing the names and addresses of locations, and one on the right containing a street map image which fills the remainder of the browser window's width. When the list in the left columb becomes longer than the browser window, it overflows with the appearance of a scrollbar. The column with the map image has vertical and horizontal scroll bars from the start because the image it holds is around 4000 X 3000 pixels. Of course, in a Google map (or any other type of spherical map) it has no beginning and no end, so scrollbars are not applicable. Instead, a 'move' tool (looking like a hand) or 'panning' arrows are used to move the map around. However it's termed, and whatever tags need to be used, be they <TABLE>, <DIV> or <ZOINK>, I need to have two separate, independently scrolling areas of the Web page for the same reason that Google does, as well as any webmaster who can use this kind of common, simple, handy, functional layout.
And what do you mean by "separate DIV", cause it *is* in a div of it's own...
Did you try just removing the float on .clientList and replacing it with position:fixed and positioning it where you want it on the screen ?No, I didn't get to try that -- I though about it, though. I realized that, even though the client list would remain fixed, it would still partially cover the map image unless the map was in its own container.
Well, CSS is CSS and javascript is javascript. Styles have to go in a stylesheet.Guess I should've asked the one who gave it to me, "what is it, and where do I put it?
I'm not even keen on what a DIV is.
Guess I should've asked the one who gave it to me, "what is it, and where do I put it?"
it overflows with the appearance of a scrollbar.
No, I didn't get to try that -- I though about it, though. I realized that, even though the client list would remain fixed, it would still partially cover the map image unless the map was in its own container.
There are two html elements that do nothing on their own...(DIV & SPAN)
...block element...inline element...
Just to confuse you, a "hard" line break <br> is considered an inline element, meaning that you can put it inside of anything you like. It's really just another character.
By default, anything in html drops to a new line when it runs out of room.Glad you mentioned that -- it highlights my point that (in 2013) a NOBR tags still prevents a line from breaking even if the line runs out of room, if that is what you want.
...not all browsers hide their scrollbars when not in use...
Since SPAN is naturally INLINE, why did you use DIV for the layout you made for me -- you still made the pair of DIVs sit side-by-side somehow (against their nature to stack vertically like BLOCK elements).
{display: inline-block;} <style type = "text/css">
{blahblah}
</style>
<head> <link rel = "stylesheet" type = "text/css" href = "mystyles.css"> ...an inline-block may either always go side by side with another one, or it may drop down to a separate line if there isn't room for it.
<style type = "text/css">
.locked {white-space: nowrap;}
</style>
How do I make the two DIVS always stay side-by-side no matter how the browser is resized?
...was placed in the HEAD but does nothing.
Was it inside <style> tags?
It never hurts to run things through the validator now and then. Here's the trio of bookmarks: