473,386 Members | 1,644 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,386 software developers and data experts.

IE7 can't get top-margin to work on main container.

I'm trying to get a gap between the top of the page and the container with the pages main content in. It seems to load fine in Chrome and Firefox but IE7 doesn't like it. I also have an absolute element that is a bar across the top that doesn't render correctly.

Here is my site: http://suffolkcottage.x10.bz/

Expand|Select|Wrap|Line Numbers
  1. #container
  2. {
  3.     width:900px;
  4.     margin: 30px auto 0px auto!important;
  5.     margin: 30px auto 0px auto;
  6.     background-color:#FFFFFF;
  7.     background:#ffffff url('grad.png') repeat-x bottom;
  8.     border:1px solid #e8e8e8;
  9.     z-index:100;
  10.     overflow: auto;
  11. }
  12.  
Any help correcting/changing the code would be appreciated.

Thanks,
Tom
Oct 16 '10 #1
1 1607
Fixed :D removed absolute positioning on the top bar. Then I added negative margins to the main container to position it where I wanted. Now loads of ie7 yay!
Oct 17 '10 #2

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

Similar topics

145
by: David MacQuigg | last post by:
Playing with Prothon today, I am fascinated by the idea of eliminating classes in Python. I'm trying to figure out what fundamental benefit there is to having classes. Is all this complexity...
3
by: Cactus | last post by:
Hi, I have a tree like structure build with javascrtip and loads of iframes. How can find the complete 'frame-path' to the frame that focused? I'm sure I can contruct something with hidden input...
6
by: Mason A. Clark | last post by:
LAST WORD(s): 1. MSIE6 and Firefox will go to the top of the page on command <a href="#top">go upsy</a> even if there is NO name="top" or id="top" They know what a "top" is :-) Opera...
6
by: Mario Reiley | last post by:
Hi, Group I am C# and VB.6 programmer but in this moments I have the followin question: How Can I keep my application on the top of all applications on my Windows desktop. Please let me...
1
by: Arjen | last post by:
Hello, This is what I have now: <ItemTemplate> <asp:HyperLink id="editLink" ImageUrl='<%# Application + "/Images/edit.gif" %>' runat="server" /> </ItemTemplate> How can I top align the...
7
by: John | last post by:
Hi, How do websites like google page through large numbers of records? For example; if I do a search on Google, get 187,000 matches, and go to the 22nd page of the results; I'm sure Google...
23
by: Antoon Pardon | last post by:
I know this PEP is rejected. However I have a problem that would benefit from having extreme values and the sample implementation that is given in the PEP is unsatifactory for my purpose. I had...
4
by: BerkshireGuy | last post by:
Hello: tblDetails has the following fields: AgencyCode, ProducerCode, AnnualPX How can I create a query to show the Top 5 producers per agency with the highest
1
by: silentscreams22 | last post by:
I need this converted. <marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:110px; top:150px; width:16px; height:483px; z-index:1;"><span...
3
by: smokymtnman | last post by:
I have a drop down menu that has grown so long that I am afraid it will be hidden at the bottom of the page. I am using a ssi file for navigation. I was wondering if I can use the same code but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.