Torsten Robitzki
Torsten Robitzki

Reputation: 2555

Tile based layout with overflow

I want to display a tile based map for a game. My current approach is to have a fixed sized div and to place absolute positioned smaller divs into that outer div. If there is something on the map at a given coordinate, I set the background picture for the div at that position. (see http://dungeonpilot.com)

Now I don't want the outer div to be fixed sized. I would like the inner div to use the whole browser space. I think I can achieve this by setting width and height to 100%. But in case, that I make the browser window small, so that some of the inner tiles aren't visible anymore, I would like to see scrollbars. But somehow, neither setting overflow to auto for the outer div, nor to the documents body does the trick.

Where and how do I have to set the overflow attribute, to get the intended behavior?

Upvotes: 0

Views: 144

Answers (1)

aNewStart847
aNewStart847

Reputation: 1076

Found a solution! Apply

overflow: scroll;
to the #masters_view and #party_view divs. Tell me if it worked.

Upvotes: 1

Related Questions