The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

5 Pages V < 1 2 3 4 > »   
Reply to this topicStart new topic
> IE Problems
Dejan
post Feb 3 2009, 05:56 AM
Post #21


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



QUOTE
<body class="twoColFixLtHdr">

<div id="container">
<div id="header">
<h1><center>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</center>
</h1>
<!-- end #header --></div>


This was it.
I made it like this:

QUOTE
<body class="twoColFixLtHdr">

<div id="container">
<h1><img src="http://smitska.woelmuis.nl/Bannerindiaanzwart.jpg" width="700" height="207" alt="Bulls for life"></h1>

<h1><center>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</center>
</h1>
<!-- end #header --></div>
<div id="navigatie">


and it looks like this:

IPB Image

I suck unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 3 2009, 01:38 PM
Post #22


WDG Member
********

Group: Root Admin
Posts: 8,289
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I recommend that you start by fixing the markup errors reported by our online validator. See the links at the top and bottom of this page.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 3 2009, 05:10 PM
Post #23


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



QUOTE
Line 134, character 11:
<h1><p>
^Error: element p not allowed here; possible cause is an inline element containing a block-level element

Line 135, character 9:
<p>&nbsp;</p>
^Error: element p not allowed here; possible cause is an inline element containing a block-level element



How am i supposed to make a space when <p> is not allowed?


QUOTE
Line 138, character 9:
</h1>
^Error: end tag for p omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with />


hmm dont understand that one?

QUOTE
Line 203, character 15:
<p><center>bulldogsforlife</center>
^Error: element center not allowed here; possible cause is an inline element containing a block-level element



How can i center the text when its not allowed to do it that way?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 3 2009, 05:26 PM
Post #24


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



QUOTE
How am i supposed to make a space when <p> is not allowed?


With CSS margin or padding.


QUOTE
QUOTE
Line 138, character 9:
</h1>
^Error: end tag for p omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with />


hmm dont understand that one?


All elements must be closed in XHTML, while some closing tags are optional in HTML. That is, using only <p> is OK in HTML (while still a bad habit IMO). In XHTML you must write the closing tag out, <p>...</p>.



QUOTE
QUOTE
Line 203, character 15:
<p><center>bulldogsforlife</center>
^Error: element center not allowed here; possible cause is an inline element containing a block-level element



How can i center the text when its not allowed to do it that way?


With CSS, or if you must with the align attribute for P.
http://htmlhelp.com/reference/html40/block/p.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 4 2009, 07:39 AM
Post #25


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



QUOTE
Congratulations, no errors!


That's done biggrin.gif (Thanks Patty)
But the main problems are still there,

Lets start with the menu on the left(wrong viewed in Internet explorer)

This is my css+html

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>bulldogs</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #41383C;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.twoColFixLtHdr #container {
width: 900px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #5E7D7E;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 7px solid #5E7D7E;
text-align: left; /* this overrides the text-align: center on the body element. */
margin-top: 1px;
}
.twoColFixLtHdr #header {
background-image:url(Bannerindiaanzwart.jpg);
background-color:none;
background-position: center center;
padding: 0 0px 0 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
border-left: 1px groove #00FFFF;
border-right: 1px groove #00FFFF;
border-bottom: 2px groove #00FFFF;

}
.twoColFixLtHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.twoColFixLtHdr #navigatie {
float: left; /* since this element is floated, a width must be given */
width: 150px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
font-family: verdana, Helvetica, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
width: 180px;
border-right: 1px solid #666;
padding: 0;
margin-bottom: 1em;
background:#2B547E;
background-image: none;
color: #000000;
}
#navigatie ul {
list-style: none;
margin-top: 0;
margin-bottom: 0;
padding: 0;
}
#navigatie ul li {
margin: 0;
border-top: 1px groove #736F6E;
}
#navigatie ul li a {
display: block;
padding: 2px 2px 2px 4px;
border-left: 20px solid #348781;
border-right: 1px solid #69c;
border-bottom: 1px solid #369;
background:#3EA99F;
background-image: none;
color: #000000;
text-decoration: none;
width: 100%;
}
#navigatie ul li a {
display: block;
width: auto;
}
#navigatie ul li a:hover {
border-left: 10px solid #347235;
border-right: 1px solid #69c;
border-bottom: 1px solid #369;
background-color: #69f;
background-image: none;
color: #fff;
}


.twoColFixLtHdr #mainContent {
margin: 0 0 0 200px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
.twoColFixLtHdr #footer {
padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background: #348781;
border: 1px groove #00FFFF;
text-align: center;
}
.twoColFixLtHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 3px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>

<body class="twoColFixLtHdr">

<div id="container">
<div id="header">

&nbsp;
&nbsp;


<!-- end #header --></div>
<div id="navigatie">
<ul>

<li><a href="/">Home</a></li>
<li><a href="/">Our Bulls </a></li>
<li><a href="/">Renascence Breedinfo</a></li>
<li><a href="/">Renascence Pictures</a></li>
<li><a href="/">Renascence Breedings</a></li>
<li><a href="/">Renascence Pups</a></li>
<li><a href="/">Renascence Specials</a></li>
<li><a href="/">Renascence Links</a></li>
<li><a href="/">Quote's about bulldogs</a></li>
<li><a href="/">Bulls for life Trophy's</a></li>
<li><a href="/">Show pictures</a></li>
<li><a href="/">Planned Shows</a></li>
<li><a href="/">Back in time pictures</a></li>
<li><a href="/">Our O.E.B's</a></li>
<li><a href="/">O.E.B Breedings</a></li>
<li><a href="/">O.E.B Specials</a></li>
<li><a href="/">O.E.B Pups</a></li>
<li><a href="/">Planned Shows</a></li>
<li><a href="/">Back in time pictures</a></li>
<li><a href="/"> O.E.B Links</a></li>
<li><a href="/">Recieved Award</a></li>
</ul>
</div>
<div id="mainContent">

<h3>Welcome to our website,</h3>



We are no high standard breeders but we will have an occasional litter,
where the male and female are well chosen for their health and beauty
Please feel free to look around here at the website, where you can find
everything about our dogs .

Left in the menu you can see that we have diffrent sections:
at the top all about Camilla's Renascences and everything that concerns
this beautyfull breed .
than a section concerning the shows we've been to and the trophy's our dogs won
And the section beneath that is all about Conchita's O.E.B's and
everything that concerns her lovely breed


Please enjoy..........Don't forget our guestbook (Gastenboek)


</div>

<p>&nbsp;</p>
<p>.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br class="clearfloat" />
</p>
<div id="footer">
<p>bulldogsforlife</p>

<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>


http://smitska.woelmuis.nl/index.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 4 2009, 08:11 AM
Post #26


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



What browser(s) do you see that it? Doesn't happen in IE6 or Gecko.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 4 2009, 12:11 PM
Post #27


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



Good viewed: Opera, Firefox

Bad Viewed: Internet explorer 7
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 4 2009, 02:31 PM
Post #28


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



OK. I'm off the hook then. Don't have IE7. biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 5 2009, 12:04 PM
Post #29


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



bad menu:

IPB Image

correct menu:

IPB Image

This post has been edited by Dejan: Feb 5 2009, 12:05 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 9 2009, 02:10 PM
Post #30


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



anyone?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 9 2009, 03:41 PM
Post #31


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



Oops! I actually see that in IE6.

The gaps to the left is because you haven't removed the left margin on UL. All browsers do this differently. It's best to remove all margin and padding to start with and then add back what you want. That way you don't have to remember what browser does what.

ul, li { margin: 0; padding: 0 }

In IE6 there's also gaps between each list item (or so it looks). I don't recall the fix. I'll search for it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 9 2009, 03:55 PM
Post #32


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



I'm not exactly sure what's going on with the vertical gaps in IE 6. I think it's something else than I thought. But adding either a bottom margin or padding to li works.

You could change the border-top you already have to border-bottom, or if you don't like the look of that, add a 1px bottom padding.

It's pretty bad, so you probably want to do something about it.
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 14 2009, 06:56 AM
Post #33


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



I need the same result as the picture above..(my picture=> correct menu)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 14 2009, 10:00 AM
Post #34


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



Don't you get that with those changes?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 18 2009, 04:20 PM
Post #35


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



could u give me the css of yours pandy?

it still looks not good

Yours:
IPB Image

Mine( ONLY IN OPERA)
IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 19 2009, 12:40 AM
Post #36


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



I already did.
http://forums.htmlhelp.com/index.php?s=&am...ost&p=33896
http://forums.htmlhelp.com/index.php?s=&am...ost&p=33898
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Feb 19 2009, 03:07 AM
Post #37


Jocular coder
********

Group: Members
Posts: 2,298
Joined: 31-August 06
Member No.: 43



QUOTE(Dejan @ Feb 19 2009, 06:20 AM) *


it still looks not good



Another way to improve it would be to correct all the spelling mistakes:

Quote's -> Quotes
Trophy's -> Trophies
O.E.B (?Old English Bulldog?) -> O.E.B.
O.E.B.'s -> O.E.B.s or OEBs is neater
Recieved -> Received
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 19 2009, 01:56 PM
Post #38


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



Thanks brian,

Paddy i think we have misunderstanding.. Could u give me the css changes u made so i could have a look?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dejan
post Feb 21 2009, 01:26 PM
Post #39


Member
***

Group: Members
Posts: 49
Joined: 14-January 09
Member No.: 7,542



would a CSS CHECK solve my viewing problems?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 21 2009, 01:48 PM
Post #40


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,134
Joined: 9-August 06
Member No.: 6



QUOTE(Dejan @ Feb 19 2009, 07:56 PM) *

Paddy i think we have misunderstanding.. Could u give me the css changes u made so i could have a look?


I'm happy to explain if you tell me what you don't understand.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

5 Pages V < 1 2 3 4 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th February 2019 - 09:06 AM