Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cross browser issues

Featured Replies

I am totally confused. I have written this webpage (file attached) index2.html(css and html all in one page at the moment, it won't be eventually) it has passed W3C validation (apart from 4 warnings for the characters I've used to replace punctuation - not sure why that's wrong either though).

 

It looks ok in IE7 (with different screen resolutions), all in line with the header expanding the correct width, the ul/li's not displaying bullets unless I've changed them specifically to something else. The blockquote in my third column styled with a div is at the top of the page, not shunted to the bottom. But when I view it in opera/Firefox etc it looks awful. I have made it purely through a notepad style program (rather than dreamweaver etc) and can't for the life of me understand what I have done wrong. Is anyone able to help me please?

 

Many thanks in advance

  • Author

Thank you for your suggestion, I've given it a go but....

 

I have changed one line to

<meta http-equiv="content-type" content="text/html;charset=utf-8" /> which hasn't made any difference (to css formatting or to the character issues.

 

I have tried the different doctypes - strict/transitional etc listed in the webpage. If I change it to any of them it undoes the formatting of the css (even in IE) and puts in bullets when there shouldn't be, I revalidated each time and I get a thumbs up. Doesn't that mean I've written my css right according to whichever doctype I use, so why won't the browsers cooperate?

 

It doesn't seem to like it when I just add one of the additional lines to the existing doctype, it goes wrong again:

"http://www.w3.org/TR/html4/strict.dtd">

"http://www.w3.org/TR/html4/loose.dtd">

 

and only works perfectly like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

 

 

<html>

<head>

<meta http-equiv="content-type"

content="text/html;charset=utf-8" />

 

 

 

If I need to change the doctype to one of the others, what would I have to do in the css to make it work as I really did think I had written everything quite simply, especially as I have fixed the layout to px.

 

 

 

Thanks again in advance

Once you correct the doctype you will need to alter your css

 

anything you've used padding on minus padding from width or height

 

so for example your header will become height:105px;width;882px;

Edited by mteam

Here you go I changed it for you

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">




 <meta name="description" content="  ">
 <meta name="keywords" content="women's institute, WI, Bedale, Richmond, north yorkshire, groups, activities, community 
 ">

<title>Wythit Wi - Bedale | Homepage</title>
 <!--<link href="http://www.atech-computers.co.uk/wi/_css/wi_dec2010.css" rel="stylesheet" type="text/css"> -->
   <!--  <link rel="shortcut icon" href="http://www./favicon.ico"> -->

<style type="text/css">
/* Wi Main Site CSS Document */


* { padding: 0; margin: 0; list-style:none;}

body {
 font-family: 'Comic Sans MS', cursive;
font-size: 13px;
background-color: #f9f;
text-align: center;
}

#wrapper { 
margin: 0 auto;
padding: 0;
width: 922px;
background: #ffffd9;
text-align: left;
}

#header {
background-color: #360;
width: 882px;
float: left;
padding: 20px;
height: 105px;
margin: 0px;
background-image:url('http://www.wythitwibedale.co.uk/_images/wilogo.png');
background-repeat:repeat-x;
background-position:center; 

border-bottom: 15px inset #f9f;
}

.bold {font-weight: bold;}
.center {text-align: center;}
#leftcolumn_sidenavigation { 
color: #339;
/* border: 1px solid #ccc; */
background: #ffffd9;
margin: 10px 0px 0px 0px;
padding: 10px;
width: 130px;
float: left;
font-size: 17px;
line-height: 28px;
}

#leftcolumn_sidenavigation a {
color: #000;
text-decoration: none;}
#leftcolumn_sidenavigation a:hover {
color: #000;
background: #f39; 
/* background-image:url('http://www.atech-computers.co.uk/wi/_images/pinkleaf.png');
 background-repeat:no-repeat;
background-position:right; 
*/
}

#leftcolumn_sidenavigation h4{
padding: 5px 0 5px 0;
text-align: center;
}

#content { 
float: left;
color: #333;
/* border: 1px solid #ccc; */
background: #ffffd9;
margin: 0px 0px 0px 0px;
padding: 10px;
width: 577px;
display: inline;
}

#rightcolumn { 
color: #333;
/* border: 1px solid #ccc; 
background: #E7DBD5;*/
 background: #ffffd9;
margin: 0px 0px 0px 0px;
padding: 10px;
width: 155px;
float: right;
}


#footer { 
width: 902px;
clear: both;
color: #FFF;
/* border: 1px solid #ccc; */ 
background: #360;
text-align: center;
margin: 0px;
padding: 10px;
}
#footer a {
color: #FFF;
text-decoration: none;}
#footer a:hover {
color: #f39;
text-decoration: underline;}

h2 {
 background-image:url('http://www.wythitwibedale.co.uk/_images/colouredleavessm.png');
 background-repeat: no-repeat;
 height: 50px;
 padding: 15px 0px 25px 50px;
 margin: 0;
 color: #360;
}

h3{
 padding: 10px 0px 10px 0px;
     color: #360;
}


#content p {
font-size: 15px;
line-height: 2em;}


.activities li {
 background: url('http://www.wythitwibedale.co.uk/_images/wibullet.png') no-repeat 0px 10px;
 padding: 0px 10px 2px 15px;
font-size: 15px;
line-height: 2em; 
}

table {
border-collapse: collapse;
width: 100%;
}

.firstcol  {width: 20%;}
.secondcol  {width: 40%;}
.thirdcol  {width: 40%;}

td {
border: 1px solid #360;
padding: .5em;
}


/* LINK STYLING FOR TOP OF PAGE LINKS*/
a.link {
color: #339;
text-decoration: none;
} 
a.link:hover {
color: #339;
}




/* BLOCKQUOTES FOR TESTIMONIALS, FAR RIGHT COLUMN*/

 blockquote {
 color: #5E7803;
   margin: 1em 0; /* unstyled bq indent left and right, this is changing default behav y resetting margins. */
   background-image:url('http://www.wythitwibedale.co.uk/_images/quoteleft.png');
   background-position: 1px 1px; /* positioning image in top left corner, this sets the x and y axis */
   background-repeat: no-repeat; /* don't want image repeating */
   padding-top: 50px;  /* this stops the text sitting over the top of the image */
   }
 blockquote p {
   padding: 0 15px; /* pushing content away from borders */
   }
 blockquote p.source {
   background-image:url('http://www.wythitwibedale.co.uk/_images/quoteright.png');
   background-position: 100% 100%; /* x and y set to 100% to place the bottom-right edge of the image in the bottom-right corner of the paragraph. */
   background-repeat: no-repeat; 
   padding-bottom: 50px; /* pushes text up to stop it from sitting on top of the background image */
   margin: 0 5px 5px 0; /* margin to right and bottom so image sits the same as top image */
   text-align: right;
   font-style: italic; }
</style>
 </head>
 <body>

  <!-- Begin Wrapper -->
  <div id="wrapper">

        <!-- Begin Header -->
        <div id="header">
</div>

	 <!-- End Header -->



	 <!-- Begin Left Column Side navigation-->
	 <div id="leftcolumn_sidenavigation">


	 			 		<ul>

<li><a href="http://www.wythitwibedale.co.uk" title="Homepage">Wythit WI</a></li>
<!--<li><a href="http://www." title="Calender">Calender</a></li>
<li><a href="http://www." title="Previous Events">Previous Events</a></li>
<li><a href="http://www." title="Gallery">Gallery</a></li>
<li><a href="http://www." title="Trying Us Out">Trying Us Out</a></li>
<li><a href="http://www." title="Contact us">Contact us</a></li>
<li><a href="http://www." title="Links">Links</a></li> -->
</ul>
	 </div>


		 <!-- End Left Column -->

	 		 <!-- Begin Content Column -->
	 <div id="content">



<!--sub headings -->
<h2>About Wythit WI</h2>
<!--paragraphs -->
<p>Wythit WI was so named as we aim to ‘go with it’, whatever it may be that our members would like to do, be it a challenging event, developing their skills, meeting new friends, organising a fund raising event or simply having fun. We meet at the Black Swan Pub, Bedale on the third Sunday of each month from 7pm to 9pm.</p>
<p class="center"><img src="http://www.wythitwibedale.co.uk/_images/black_swan_sm.png" alt ="Black Swan Pub"></p>
<p> </p>
<h3>Brief Overview of 2011 events:</h3>

<ul class="activities">
<li>Website creation and Social evening</li>
<li>Creative Writing</li>
<li>Pottery Painting</li>
<li>Trip to the George & Dragon, Hudswell. A Community-run Pub</li>
<li>Cost-cutting Couture</li>
<li>Treasure Hunt</li>
<li>Bowls</li>
<li>Swaledale Mountain Rescue talk</li>
<li>Wreath-making</li>




</ul>
<p> </p>
<p>Please note this website is still under construction. Please visit us shortly for lots more information.</p>
<p> </p>
<h3>To Contact Wythit WI in the meantime please ring or email:</h3>
<p><span class ="bold">President: </span>Beverley Lawson: 07933 687 460</p>
<p><span class ="bold">Secretary:</span> Christine Close:  <a href="mailto:christine@christineclose.plus.com?Subject=Web%20Query/Response"> christine@christineclose.plus.com</a></p>
<p><span class ="bold">General Enquiries:</span> Email:  <a href="mailto:info@wythitwibedale.co.uk?Subject=Web%20Query/Response"> info@wythitwibedale.co.uk</a></p>
<p> </p>
<p> </p>
<p> </p>


<a class="link" href ="#top">Return to top of the page</a>
</div>


	 <!-- End Content Column -->

	 <!-- Begin Right Column -->
	 <div id="rightcolumn">


<blockquote>

<p>
“Better to have come and given it a go than not to have come at all”
</p>
<p class="source"> Wythit Girls</p>
</blockquote>


	 </div>
	 <!-- End Right Column -->


	 <!-- Begin Footer -->
	 <div id="footer">

<!--<a href="#nogo" title="Sitemap">Sitemap</a>  |  <a href="#nogo" title="Contact us">Contact Us</a>  | --> Copyright © <a href="http://www.atech-computers.co.uk" title="Atech Computers">Atech Computers 2010</a>		

     </div>
	 <!-- End Footer -->

</div>   <!-- End Wrapper -->








 </body>
</html>

Edited by mteam

  • Author

Thank you sooooo much. I have just seen your message and uploaded it and it works, yay! :)))

 

I can't believe it was so simple, I'm embarrassed I hadn't worked it out, or been able to find the quirks of this doctype, but thanks again I thought I was going to have to start all over again.

 

Best wishes for 2011

 

Beth

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.