davidp Posted December 26, 2007 Share Posted December 26, 2007 I have an HTML page using CSS, and the content of the page is of moderate length....but no scroll bar appears in the browser to scroll the content at all. I have attached a screen shot, so take a look at that. Now, of course to really know what's going on, you need to see the relevant CSS, so here it is. The HTML file itself is quite short, so I will post it in its entirety (minus the country links which take up the length of the page): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Exploring Borders Admin</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="http://localhost/borders/style/layout_admin.css" type="text/css"> </head> <body> <b> <div style="font-size: 16pt;">Admin Access Page</div> </b> <br> <div style="width: 800px; height: auto;"> <div style="position: fixed; left: 10px; top: 50px; width: 800px; height: 75px; text-align: left;"> You are logged in as an administrator.<br> <a href="adminlogout.php?action=logout" class="header">Click here to log out</a> <br><br> </div> <div class="admincontrol" style="position: fixed; top: 100px; left: 10px; height: auto;"> Administrator Options: <br><br> <a href="index.php" class="sidebar">Main</a><br> <a href="index.php?action=viewusers" class="sidebar">View Users</a><br> <a href="index.php?action=viewadmins" class="sidebar">View Administrators</a><br> <a href="index.php?action=viewcountries" class="sidebar">View Country Info</a><br> <br> </div> <div style="position: fixed; left: 250px; top: 100px; height: auto; overflow: auto;"> ... all the country links... </div> </div> </body> </html> Now here is the only other relevant piece of CSS contained in the linked CSS file (all other CSS classes in the linked CSS file are specific for "a" tags): div.admincontrol { border-style: solid; border-color: #00285C; background-color: #EBEBEB; width: 200px; text-align: left; padding-left: 1ex; padding-top: 1ex } Given that information...does anybody know why no scroll bar appears on the right side of the browser to let me scroll down the page of country links? [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/83261-solved-entire-page-isnt-scrolling/ Share on other sites More sharing options...
davidp Posted December 26, 2007 Author Share Posted December 26, 2007 Nevermind I got it Had to use absolute positions instead of fixed positions. Quote Link to comment https://forums.phpfreaks.com/topic/83261-solved-entire-page-isnt-scrolling/#findComment-423560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.