473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

div at top not expanding with content (part 2)

This question is a continuation of the question that was asked here (sorry, I couldn't find anything on the original post that would let me respond there):
http://bytes.com/topic/html-css/answ...anding-content

I did what Ben C suggested in post #3, which was to add the style body{float:left}. This solution worked for all the browsers I tested (Firefox, Chrome, Safari), except for IE (I'm using IE8). In IE, the body element is stationed at the width of the viewport instead of covering the whole width of the page, including scrollable content.

Does anybody know a good hack that will fix this problem for IE?
Jan 27 '11 #1
3 1826
drhowarddrfine
7,435 Expert 4TB
Depends on your markup. In addition, IE is the worst browser on the planet and unpredictable. Without the complete markup or, preferably, a link, we can't tell.
Jan 27 '11 #2
Hi drhowarddrfine,


Yes, I totally agree with your comment about IE. It's been the bane of my existence this week!

I can't give you a link because the page I'm working on requires an account to our corporate website, but I noticed that the behavior I want to modify is something that's standard in IE. I found this out by going to the Yahoo website in IE8, opening Developer Tools, and highlighting the <body> element under the HTML tab. When the screen is resized to a width where scrolling is required and I refresh the page, the <body> element does not cover the entire content; it only covers the viewport. I hope you get what I mean...

Do you know of a way to modify this behavior, so that <body> wraps everything when the viewport is narrower than the page content?
Jan 27 '11 #3
drhowarddrfine
7,435 Expert 4TB
This would be easy to figure out if it didn't work in the modern browsers but, as it stands, I can't think of any IE quirk that would cause this. Perhaps you can show a simplified version of a page?
Jan 28 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: infinull | last post by:
I am making a script that is a very complex Content Management system. it makes a UDM navigation bar and writes content and a title. i want it to write content other that just basic text, like a...
5
by: Richard Light | last post by:
A literal-minded reading of the XML 1.0 Spec suggests that elements with content model ANY should not have comments or PIs as their immediate children. Is there a particular reason for this? ...
3
by: Cleave | last post by:
Hello, I have a ASP application that I can't afford to convert totally over to ASP.NET, but currently I am converting the content pages that display in the content part of the ASP frameset. When...
3
by: tshad | last post by:
Is there a way to tell it to go to the first textbox on the page? I would like the user to start off at the textbox on my page instead of having to tab down through my meu to get to it or to have...
1
by: interfaced | last post by:
Is there a way to make an autosized textbox relative to the content, here is my attempt: <script type="text/javascript"> function checkHeight(el){ var...
3
by: samuelberthelot | last post by:
Hi, In one of my database's tables I have a Header and Footer field, which content is used to create the header and footer of my Master page. Part generated from Header field: <html > <head...
2
by: Dst | last post by:
Using Visualstudio 2005, masterpage/contentpage layout. I have a old asp page which i need to display in a content page in a aspx page. I tried this: Get the webpage into a string. In page...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
1
by: pdgrimm7 | last post by:
Hello! I am a newbie at ASP, trying to self teach. I have a web page with a header, body, and side. I have 3 links in the side, and a content placeholder in the body. I am just starting, so the 3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.