CSS weird block problem IE only - help!!!

This is a discussion on "CSS weird block problem IE only - help!!!" within the Web Page Design section. This forum, and the thread "CSS weird block problem IE only - help!!! are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 7th, 2007, 13:22
New Member
Join Date: Jun 2007
Location: uk
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Red face CSS weird block problem IE only - help!!!

can anyone solve this problem, i have created a layout in css and added a drop down menu the code on the page, some pages on the site display an extra block at the bottom of the page that i cannot fathom, the block dissapears as soon as you roll over any menu item that includes a dropdown. ??

It only happens in IE - tested in forefox and it works fine.

heres the link:
http://www.aubmedia.com/urbantan_web

any help much appreciated.
Reply With Quote

  #2 (permalink)  
Old Jun 7th, 2007, 13:29
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS weird block problem IE only - help!!!

Validate your site. You have 13 errors ... one of them is very important.

May I suggest a suggest a javascript-free way for a cross-browser drop-down cascading validating menu? As well as an alternative to you javascript rollover menu with pure CSS rollovers without javascript.

Last edited by karinne; Jun 7th, 2007 at 13:45.
Reply With Quote
  #3 (permalink)  
Old Jun 7th, 2007, 13:40
New Member
Join Date: Jun 2007
Location: uk
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS weird block problem IE only - help!!!

thanks for the comments - i was planning to validate but this wont solve the problem. We were forced into using this method for the menu for various reasons - so would really like an answer to this problem rather than starting the menu from scratch using pure css.
Reply With Quote
  #4 (permalink)  
Old Jun 7th, 2007, 13:45
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS weird block problem IE only - help!!!

Quote:
Originally Posted by stridenoble View Post
thanks for the comments - i was planning to validate but this wont solve the problem.
Maybe not but this error

Quote:
Line 236 column 17: document type does not allow element "div" here; assuming missing "body" start-tag.<div id="wrapper">
is pretty major ... you're missing you <body> tag
Reply With Quote
  #5 (permalink)  
Old Jun 7th, 2007, 13:45
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS weird block problem IE only - help!!!

Looking at your code more closely you have quite a few oddities and things you are using but don't seem to understand their meaning.

<div id="wrapper"> is one of them. Your CSS for this is

Code: Select all
html, body, #wrapper {

    min-height: 100%; /*Sets the min height to the

                        height of the viewport.*/

    width: 100%;

    height: 100%; /*Effectively, this is min height

                    for IE5+/Win, since IE wrongly expands

                    an element to enclose its content.

                    This mis-behavior screws up modern  

                    browsers*/

    margin: 0;

    padding: 0;

    }



html>body #wrapper {

    height: auto; /*this undoes the IE hack, hiding it

                    from IE using the child selector*/

    }





#wrapper {

    position: absolute;

    top: 0;

    left: 0;

    }
which makes absolutely no sense to me. You don't need all that stuff. If it's a footer that stick to the bottom of the page that you want, check out Sticky footer

The position: relative is really screwing everything up IMO. With a one column layout, you don't need any of that.

CSS
Code: Select all
html, body, #header, #navigation, #maincontent {
    margin: 0;
    padding: 0;
}

html {
    background: #000 url(http://www.aubmedia.com/urbantan_web/images/webback1.jpg) repeat-y 0 0;
    font: 11px Arial, Helvetica, sans-serif;
}

body {
    margin: 0 auto;
    width: 713px;
}

/********************* main separations *************************/
#header {
    /* add style here */
}

#navigation {
    /* add style here */
}

#mainbody {
    width: 713px;
    overflow: hidden; /* clearing floats */
}

/********************* #mainbody: styles ************************/

#content {
    float: left;
    width:393px;
    padding:20px 0 20px 20px;
}

#sidebar {
    float: right;
    width:280px;
    padding:20px 20px 20px 0;
}

/* etc.... */
HTML
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <link rel="stylesheet" type="text/css" media="screen" href="css/styles.css">
    
</head>

<body>

<!-- header -->
<div id="header">

</div>
<!-- END OF header -->

<!-- navigation -->
<div id="navigation">
    <ul>
        <li><a href="">Home</a></li>
        <li><a href="">Something</a></li>
        <li><a href="">Another</a></li>
        <li><a href="">Look at me!</a></li>
    </ul>
</div>
<!-- END OF navigation -->

<div id="mainbody">

<!-- content -->
<div id="content">
<h1>Some news title</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed placerat. Integer aliquam orci non velit. Vestibulum facilisis, enim ac pellentesque bibendum, felis lorem congue quam, sit amet vestibulum libero ligula ut felis. Morbi suscipit. Mauris gravida. Suspendisse semper, ipsum et condimentum suscipit, tellus tortor feugiat purus, nec aliquet lectus nulla at sapien. Vivamus euismod. Vestibulum ornare. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Vivamus gravida, neque quis faucibus porta, leo diam pulvinar eros, eget eleifend purus metus ac nulla. Vivamus faucibus. Sed tempus. Suspendisse tortor elit, pretium vitae, malesuada ac, scelerisque sed, eros. Ut mi pede, rhoncus quis, malesuada id, volutpat nec, arcu. Maecenas venenatis, magna ornare porta aliquam, enim arcu ultrices nunc, vitae tristique nisl arcu ut pede. Ut pede ipsum, posuere at, laoreet nec, viverra vel, nibh.</p>

<p>Curabitur dapibus rutrum nisi. Praesent molestie cursus nisi. Sed adipiscing congue urna. Duis ullamcorper, sem eu tristique viverra, odio lacus sollicitudin lectus, in tempus dolor nunc sit amet metus. Vivamus viverra, lacus in eleifend pellentesque, justo odio porttitor ipsum, et sollicitudin elit ligula vel mi. Cras metus. Aliquam odio felis, consequat vel, placerat et, mattis id, nisi. Proin at elit in nibh tempus dapibus. Vestibulum placerat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas lacus elit, adipiscing at, iaculis id, volutpat vel, tortor.</p>

</div>
<!-- END OF content -->

<!-- sidebar -->
<div id="sidebar">
<p>Some side stuff here</p>
<p>more bla bla here</p>
</div>
<!-- END OF sidebar -->

</div>

</body>
</html>
Reply With Quote
  #6 (permalink)  
Old Jun 7th, 2007, 16:37
New Member
Join Date: Jun 2007
Location: uk
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS weird block problem IE only - help!!!

thanks for your help , think i have it sorted now.
Reply With Quote
Reply

Tags
css, menu, problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
got a weird PS problem shammy2007 Graphics and 3D 2 Dec 29th, 2007 02:27
[SOLVED] Weird Problem with Form in IE Jack Franklin PHP Forum 3 Dec 20th, 2007 15:58
Weird menu problem Aardvarked Web Page Design 5 Jun 28th, 2007 12:46
Weird Problem in FireFox Powderhound Web Page Design 11 Sep 20th, 2006 07:10
Weird display problem in IE Paul.Yeoman Web Page Design 7 Jan 27th, 2006 14:42


All times are GMT. The time now is 01:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43