CSS - Site Screwy In Ie7
Hi,
I was wondering if anyone could offer any advice as to why this page is screwed up in IE7 only. http://www.zeligsoft.com/SDR-tools-products.cfm As you can see the content gets cut off at a certain point, while in IE6 and FF it properly extends the div. Similar TutorialsI'm using this CSS for a FORM:
Code: #div1, #div2, #div3, #div4 { padding: 10px; margin: 0 auto; overflow: auto; display: none; border 1px; } fieldset { position: relative; padding: 10px 10px 10px 10px; margin: 10px 10px 0 0; border: 1px solid #336633; } .input-box { color: #336633; background: #FDFCE5; border: #26a solid 1px; } Problem: Looks fine in FF, top margin is 10 px as I want. But in IE7, even if I delete the top margin completely, it's still about 30 px from the DIV above it. See he nojailforpot.com/signers2.php Page looks fine on my screen but when i resize window-divs overlap or in some cases just text runs on top of other divs messed up. Do I need to set all my width-height values and margins to auto? Margins in my wrap are auto. What are common causes of this? heres my css-its kinda a potpourri Code: #wrap {width:70%; min-width:700px; margin-left: auto; margin-right: auto; } #headertop {background:url(gradient.png); height:40px; } #header {background:url(black.png); height:70px; } .title {float:left; margin:5px; } #menu {float:right; margin-top:30px; margin-right:20px;} .link {float:left; margin-top:8px; margin-left:5px; background:url(gradient.png); border-right:1px solid black; height:auto; width:auto; padding:5px; text-align:center; font-family:Lucida Grande; padding-right:3px; margin-bottom:0px; border-top:1px solid grey; } #floatright {float:right; width:400px; margin:0px; padding-left:10px; border-left:2px double grey; height:350px; background:#000000; } .nav {float:left; height:400px; padding-right:10px; padding-top:50px; } .txt {padding-left:10px;} #bottom{background:#000000; height:10px; margin-top:0px; border:2px solid black;} #content { border:1px solid grey; background:#fffbe9; } .floatl{float:left;} #testarea { padding-top:25px; padding:10px; min-height:330px; background:#ffffff; border-left:1px solid grey; } #testareaalt { width:auto; padding-top:25px; padding:10px; min-height:330px; height:auto; background:#000000; border-left:1px solid grey; } .area {background:url(background.png); height:30px; } .button {width:100px; height:25px; border:1px solid black; background:grey; padding:8px; display:block; } .top {background:000000; height:15px; } h3 {font-family:Sans-serif; background:url(gradient.png); padding:5px; } h4 {font-family:Sans-serif; background:url(black.png); padding:5px; margin:0px; color:#ffffff; } h4.g {font-family:Sans-serif; background:url(black.png); padding:5px; margin:0px; color:#00af33; } p {font-family:verdana; line-height:15px; font-size:13px; padding-left:10px; padding-right:10px; color:7d7d7d;} ul {font-family:verdana; line-height:15px; font-size:13px; padding-left:40px; padding-right:10px; color:7d7d7d;} table {border-collapse:collapse; padding:5px; font-family:verdana; line-height:15px; font-size:13px; padding-left:10px; padding-right:10px; color:7d7d7d; } table.social {border-collapse:collapse; padding:10px; margin:5px; background:url(gradient.png); } } td.alt {background:grey; } #textbox { border:1px solid grey; background:url(black.png);} #menutrial {float:right; margin-right:0px;} .left {float:left; margin:10px; clear:left;} .container{margin:8px;} a:link, a:visited { color: #cc0033; padding:5px; text-decoration: none; font-family:Sans-serif; } a:hover, a:active { /*background-color: #C74350;*/ color: #ffffff; text-decoration: none; text-shadow: 1px 1px 1px #33ff00; font-family:Sans-serif; } #textboxa{ border:1px solid grey; background:#000000;} img.alt {margin-left:90px; margin-right:auto; width:70%; border:0px; } #right{float:right;} I'm slightly new at CSS, but I've typed out the following code to set up my site. Code: body { margin: 0px 0px 0px 0px; } a:link { font-family:Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none; } a:hover { font-family:Verdana, Arial, Helvetica, sans-serif; color:purple; background-color: white} #leftcontent { position: absolute; left: 0px; top:auto; width: 144px; background-color: #9E1817; border: 0px; height: 100%; } #centercontent { top:auto; background:white; margin-left:145px; margin-right:-1px; border:0px; width: 784px; } #banner { background:lavender; height:138px; border-top:0 solid darkblue; border-right:0 solid darkblue; border-left:0 solid darkblue; margin: 0px 0px 0px 0px; } p { margin:0px 10px 10px 10px; } #copyright { border-top-color:#990000; border-top-style:dashed; border-top-width: 1px; width: 100%; position:absolute; bottom: 20px; } My problem is that the 'leftcontent' div is overflowing, and I want it to only do so when the content has to overflow. My copyright div is also acting screwy (I think because of the leftcontent not acting properly). It is setting itself 20 pixels from the bottom, but just the visible area upon first viewing the page. The overflow makes it sit more like 150px fro mthe bottom. Any ideas on how to rid myself of the overflow problems? I've tried overflow:hidden, but it didn't exactly work. Hey all. I have not done a great deal of web development, and whatever I have done has been with tables. I have seen a great many debates on the whole table vs div topic, and so this time thought I'd put together a site with divs + css rather than tables + css. so I have a few questions. here is the very simple code I've got so far. Code: <?php include("header.php"); ?> <div id='container'> <div id='header'> Header </div> <div id='rootmenu'> menu </div> <div id='docbody'> <div id='content'> content </div> <div id='sidemenu'> side </div> </div> </div> <div id='footer'> Footer </div> <?php include("footer.php"); ?> and the css file: Code: html, body { height:100%; } #container { width: 100%; height: 100%; margin: 0 auto 0 auto; margin: 0px auto 0px auto; } #header { height: 10%; width: 70%; background: #000; margin: 0px auto 0px auto; } #rootmenu { width: 70%; background: #fff; margin-bottom: 5px; margin: 0px auto 0px auto; } #docbody { width: 70%; height: 85%; padding: 0px; margin: 0px auto 0px auto; } #content { height: 100%; width: 80%; background: #45f; float: left; } #sidemenu { height: 100%; width: 15%; background: #56f; float: right; } #footer { width: 70%; background: #333; margin: 0 auto 0 auto; } most of this is based on code I've been looking at on sites like oswd.org. I would just like to know that I'm on the right track with my divs and css before putting too much work into the site. it always sucks to realise a serious design flaw at a later time. so please, could I get some suggestions on what I need to change and any important things I should know? cheers. hello, ive made a site for a client but for some reason when they first see it it moves up and then after they go back its fine. they use an old IE so i cant see why it does on my computer and its fine on mozzilla to. www.designerbagsboutique.co.uk is the website, can anyone help? Hey guys. I've been looking for this site that I should have bookmarked when I found but have lost. I can TRY and describe it as best I can. The main background color was white with, depending on the style you've set, a glass of wine or mug of beer fairly large in size and with a low opacity. The styles were simple. Purple or yellow. Wine or beer. Mostly black text. I forget how it was you were able to change them, but he used it in some examples. The menu had list items similar to the naving convention: liquid 2 column nf fixed 3 column nfnh liquid/fixed 3 column etc. The header was the whole wording of whatever the menu items were. Each page he showed examples using css, xhtml and sometimes javascript with the code on the page. At the bottom of each example it had a group for user comments. Some were empty. I don't remember any logos at all on the site other than the wine and beer. I think the url was something like: www.site.com/nameNO~/ I found it the same day I found the "seabold why tables are stupid" site. I remember reading a solution to a problem that I've encountered but I don't remember the code, I was just skimming the site. I tried finding other solutions, or the same solution somewhere else with no luck. Thanks Hi, I am working on moving my tables based site to a tableless css layout. I just wondered if anyone out there could please help, by viewing my site with a Mac, to see if the header image appears. The URL is: http://www.jimpix.co.uk/ecards2/default.asp Another site I made for someone has a header image, defined via the 'background' css property for one of the DIVs, and I have been told it doesn't appear on a Mac. That site is: http://www.somewhereinbetween.biz/ I am concerned my site will suffer from the same problem with a Mac. It looks okay in IE and Firefox. Thanks Jim OK, I have tested all browsers both Mac and PC, and the only issue I have is with the AOL browser. You can see the site here Can anyone tell me how to trouble shoot CSS for the AOL browser? thanks - Upon initial load, you see a red block over the images. Why does it do that and how can I fix it? http://www.kubicle.com/beta/ Hi I need css help to make it a 3 column and add google adsense to my site its a music portal my18friends.com Hey here's the address to my first site using Css layouts. http://funnyguys99.tripod.com/index.htm Please help me fix the logo so it adapts to different resolutions, and I can't figure out how to get that blue bar to the very bottom?!! Please help I'm a big newbie Hi Any comments, especially CSS wise would be muchly appreciated... URL One thing I did notice was that when you click on a link to go to a page with more content that the one you were on before, that the entire layout shifts...any ideas anyone? thanks! Modo I am currently getting back into creating websites and learning new ways to make them. I like using Photoshop to create the graphics, but is there any way that I can use CSS to make it so that on all my pages the main portion on the site remains the same, such as the header, footer and side bars? Appreciate the help. BTW... the site address is Orpheus Designs . I've been trying to work this for 3 hours now, and I need help!! My problem is that I get cursors on 3 of my links but not the other two. Link to the site is http://borgweb.se/beta <- try the menu css is: Code: body { min-width:1024px; background-color: #f5f3ec; margin-right: 0px; margin-left: 0px; padding: 0px; margin-top: 0px; margin-bottom: 0px; } #header { height:240px; width:100%; background-color: #1e1303; background-image: url(images/topback.png); background-repeat: no-repeat; background-position: 50%; margin-right: auto; margin-left: auto; } #header-logo{ max-width:1024px; position:relative; width:1024px; height:240px; background-image: url(images/bw_logo.png); background-repeat: no-repeat; display: block; margin-right: auto; margin-left: auto; } #menu { background-image: url(images/menu.png); height: 76px; width: 75px; float: right; position: relative; top: 80px; right: 20%; } #home { height: 12px; position: relative; display: block; cursor: pointer; } #home a { background-position: 75px; } #aboutme { height: 12px; position: relative; top: -3px; cursor: pointer; } #portfolio { height: 12px; position: relative; top: -5px; cursor: pointer; } #blog { height: 12px; position: relative; top: -8px; cursor: pointer; } #contact { height: 12px; position: relative; top: -10px; cursor: pointer; } #container { width: 1024px; margin-right: auto; margin-left: auto; display: block; float: left; } html is: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <div id="header-logo"> <div id="menu"> <div id="home" onclick="location.url('#');"></div> <div id="aboutme"></div> <div id="portfolio"></div> <div id="blog"></div> <div id="contact"></div> </div> </div> </div> </body> </html> So I am just getting into designing with CSS, and really enjoying it. I put up this site for a friend, its my first coded by hand. I did it all with BBedit on a mac, and it looks fine on Safari and Firefox. However, as you can see, it looks terrible on IE, totally unusable, and I would accept any advice on how to fix it. The menu came from seco consultants and uses whatever:hover to work in IE, though in this case it dont work. The layout is all screwed up too. Anyone want to offer some advice? Here's the site: dobsonfarm.com/connaught Thanks very much, Robin Turner Here is a new template I am working on for my site (only "Home", "Events" and "People" work, at the moment). It displays as designed in Firefox but it looks absolutely terrible in IE6. I am aware that there are several ways of hacking IE6 to make it behave differently, however I'm not entirely sure of where in particular I should be applying these. Thanks for taking the time to read my question. What is the best site out there for learning what a css sheet is, the rules of making one, and all the commands and options etc.? Thanks again, Brad Hi there. Please have a look here. Could you please report any prob you come into and the browser you're on? Check out the layout section. Thank you in advance :) Hi, This is the first day i am tackling css. Please Explain why my site is looking different in netscape as opposed to IE, (ie is the correct look). This is the link http://www.eac.net.au/remax/template1/new_apartment.htm . I am also attaching my css file, let me know if i am on the right track for using CSS THANKYOU uno_turko hey guys is there a way in css to make the contour of your web site thicker? cause lets say i sat my border it sets all the borders not the outside one? look and see what i meen..im waithing to fix the reste before incase i have to redo the hole thing..lol it looks very plane.... http://autoperfectson.ca/aps4/ |