HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
making more than one css file
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Tue Mar 04, 2008 3:59 pm     making more than one css file Reply with quote

I would like to know if making one CSS for div layout and one for the other stuff would make my site load faster? It is still taking too long to load, I have stripped out all I can and made my images smaller and optimised them, but even the bakcground for the main content div takes awhile to load up. So I would appreciate any help with getting the loading quicker, I have optimised the css so it may look a mess if you look at it, and some of the HTML. www.bytesizeoffice.co.uk
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Tue Mar 04, 2008 5:37 pm     Reply with quote

The problem must be with your computer, internet connection, server routing or all of these as your page loaded quickly for me.

Might look into pre-loading your images and have your page not displayed until images are all loaded.

Having more than one css is ok, but it doesn't help the page load much having more than one when only one would do. I would add this attribute to the link tag for the css: media="screen"

Should you ever want a print css then you can use a link to it with: media::print"

You are also loading two separate frame pages. probably loaded with graphics. I didn't check.

You do have some css coding problems.

Ron
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Tue Mar 04, 2008 5:39 pm     Reply with quote

Dup post: server hung up on me.

Ron
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Tue Mar 04, 2008 5:50 pm     Reply with quote

It loads real fast for me also.
I noticed that when I hover on the top menu it jumps down. This is caused by the 4px top and bottom padding on the a:link and a 5px padding on the a:hover top and bottom padding. If you make the left and right containers height auto instead of fixed, it will eliminate the white space between content and footer and probably eliminate the overlapping on the footer. The footer will then be at the bottom of the longest container.
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Wed Mar 05, 2008 3:43 am     re css files Reply with quote

thank you both for getting back to me. The CSS coding problems I do not understand, some i do, like what is a parsing error?

1 ��� Parse Error - ���* {margin: 0;padding: 0;}
41 Parse Error - :

so I have left these as I dont know what to do with them. The other error I can fix. And what is pre-loading images until the page is displayed? Also I dont understand the insert CSS: media="screen" where do I put that? I suppose my connection is a bit slow but other people have mentioned it loads slow too. You said I am loading two frames pages, I am not loading frames pages, I dont even know how to do frames. Should I make the padding all the same size for the a:link and the a:hover link then? I dont know whats wrong with the padding. I do appreciate your help.
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Wed Mar 05, 2008 7:12 am     Reply with quote

Maybe this long winded explanation will help
<link rel="stylesheet" type="text/css" href="stylessheet.css" media="screen">
See http://www.w3.org/TR/REC-CSS2/media.html for media types

Incorrect doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Correct doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
See http://www.w3.org/QA/2002/04/valid-dtd-list.html

The parsing error on line 1 is fron the characters * it cannot read these character and is reading {margin: 0;padding: 0;} only. The characters need to be removed leaving the * in place. If you are writting with notepad, save as ANSI and nothing else to prevent the insertion of these characters on css and html pages.

The frames you are loading are the google ads.

This is what your css should look like. I have commented areas that can possibly be changed, have shorthanded some elements and made some changes.
Code:
* {margin: 0; padding: 0;}

* html ul li a {height: 1%;}

html > body #container {height: auto;}

html {height: 100%;}

body {text-align: center; height: 100%; font: .88em helvicta, sans-serif; background: #fff url('images/bgstripe.jpg') repeat-x; color: #000;}

#container {height: 100%; background: #fff; text-align: left; border: 2px solid #fff; margin: 5px auto; width: 750px;} /* Why background and border same color?? */

h1 {padding-bottom: 0; margin-bottom: 0;}

#header {width: 750px; background: url('images/stripe.gif'); height: 113px;}

#date {font-size: 0.75em; float: right; margin: 0; padding: 0; color: #666; height: 17px; width: 156px; font-style: italic;}

#navigation {width: 137px; margin-top: 5px; float: left; margin-left: 2px;}

#menu {margin: 0; padding: 0; font-size: 0.75em; background: no-repeat 2.0em 50%; list-style-image: url('images/arrow.gif'); padding-left: 20px;} /* What is..background: no-repeat 2.0em 50%;?? */

#menu a {margin: 0; color: #666; border-bottom: 1px solid #3c9; padding: 3px; display: block;}

#menu a:hover {background: #ebebeb; color: #666; text-decoration: none;}

.vmenu {font: bold 12px Verdana; width: 100%;}

.vmenu ul {margin: 0; width: 750px; float: right; background: #fff url('images/indentbg.gif') center center repeat-x;}

.vmenu ul li {display: inline;}

.vmenu ul li a {float: right; text-decoration: none; color: #666666; text-transform: uppercase; padding: 4px 8px; border-right: 1px solid #666666;}

.vmenu ul li a:visited {color: #666;}

.vmenu ul li a:hover {color: gray; background: #fff;}

#search {margin: 0 0 5px 2px;}

#centercontent {width: 400px; margin: 35px 5px 0 15px; padding: 0 0 0 10px; float: left; display: inline; height: 1%;}

#rightcontent {float: right; background: url('images/longbox.gif') no-repeat; width: 127px; height: 1045px;} /* Why not height:auto?? */

#rightcontent2 {font-size: 0.75em; width: 121px; height: 1028px; margin-top: 24px; border: 1px solid #3c9; padding: 2px;} /* Why not height:auto?? */

#smallbox {background: url('images/smallbox.gif') no-repeat top center; width: 128px; height: 770px; margin: 3px; float: left;} /* Why not height:auto?? */

#smallbox2 {font-size: 0.75em; width: 122px; height: 730px; margin-top: 25px; border: 1px solid #3c9; padding: 2px;} /* Why not height:auto?? */

#footer {text-align: center; background: #ECECFF; clear: both; height: 40px; font-size: 0.66em; /*background: #fcfcfc;*/} /* Two background colors */

#footer p {padding-top: 10px;}

#leftareasecond {width: 165px; margin: 5px; float: left;}

#rightareasecond {width: 165px; margin: 5px; float: left;}

#content {width: 100%; margin-top: 5px;}

#rightarea {width: 125px; float: left; margin: 3px;}

#leftarea {width: 125px; margin: 3px; position: relative; float: left; display: inline; height: 1%;}

#centerarea {width: 125px; margin: 4px; float: left;}

#form {background: #f2fff2; padding: 30px;}

ul {list-style: none;}

a:link {text-decoration: none; color: #666699;}

a:visited {text-decoration: none; color: #666;}

a:hover {text-decoration: underline;}

a:active {color: #666699; text-decoration: none;}

h2 a:link {color: #666699; border-bottom: 1px solid;}

h2 a:active a:visited: {color: #666699;}

h2 {font-size: 1.50em; color: #666699;}

hr {border-width: 1px solid #666699; margin: 10px;}/* correct way = height:1px; color: #666699; background: #666699; width can be set in % */

h3 {color: #14523e; font-size: 1.00em;}

a img {border: none;}

img {border: none;}

img.floatcenter {margin-left: 150px;}

img.center {margin-left: 13px;}

img.floatright {margin: 10px; float: right;}

img.floatleft {margin: 10px; float: left;}

.border {border: none;}

p.blue {color: blue;}

p.search {padding-top: 0; padding-bottom: 0;}

p.heading {text-align: center; font: 0.88em arial; background: #9cf; width: 200px;}

p.textindent {text-indent: 15px; font: 0.75em arial;}

p.shaded {background: #bfdfff; font: 0.75em arial;}

p.text {font: 0.75em arial;}

p.right {float: right;}

p.donate {text-align: center; padding: 0;}

p {margin-bottom: 10px;}

table.text {font-size: 0.88em;}

li.italic {font-size: 0.75em; font-style: italic;}

ol.links {list-style: none;}

ol.paragraph {margin: 10px; font: 0.75em arial; list-style: decimal; padding: 15px;}

.tutorials {background: #f4f4f4; list-style: none;}

.desktoplist {color: #000; background: #f4f4f4; list-style-position: inside; padding: 5px; list-style: circle;}

.listing {color: #000; margin: 10px; width: 380px; list-style: square; padding-left: 5px; background: #f4f4f4; list-style-position: inside;}

.odd {background: #EEE;}
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Wed Mar 05, 2008 7:26 am     Reply with quote

Just a quick note on my last post. I commented about the border around the content are being the same color as the background. IE and Firefox use a different box model. In Firefox the height and width define the dimensions of the content area. Margins, borders and padding are added on. In IE however the height and width define the max dimensions of the whole box.

So a div specified to be 100px x 100px with a 5px border all round would render as a 110px x 110px box in FireFox but as a 100px x 100px box in IE.

If your not having problems with IE then your ok.
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Wed Mar 05, 2008 9:45 am     re this post Reply with quote

hi sticks thanks for posting the css updates, I do need it, I will make the changes, I am having problems with IE 6 in particular as it separates my navigation links, and makes wide gaps, when I use the fix, zoom 1% it makes the top navigation go out of line, so I cannot use that, and the other fix I know of the display: inline; then display: block; does not work either.

I need to make the content boxes, auto, but the boxes display differently in IE, so is there a fix for this? In firefox, the boxes line up OK but in IE they expand and go out of alignment.

Did not realise I had borders on the container, I will change that and your other comments on the CSS I can work on too. The parsing errors I now understand. thanks for helping me.

I'm using the transitional as the shout box, is not valid, just for this page, the other pages are strict.
Read the media stuff and I understand I should use the media/screen but dont know where to put it for sure, and how does it tie in with my CSS file link? do I add it at the end?
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Wed Mar 05, 2008 1:36 pm     Reply with quote

Put the media type on the end of the css link in the head section
Code:
<link rel="stylesheet" type="text/css" href="stylessheet.css" media="screen">
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Thu Mar 06, 2008 2:45 am     re Reply with quote

OK will do that, thanks
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Thu Mar 06, 2008 7:15 am     Reply with quote

Worked with your code a little bit and fixed a few problems. The google ads are breaking the two sidebars and I don't see a fix.

Code:
css
* {margin: 0; padding: 0;}

* html ul li a {height: 1%;}

html > body #container {height: auto;}

html {height: 100%;}

body {text-align: center; height: 100%; font: .88em helvicta, sans-serif; background: #fff url('images/bgstripe.jpg') repeat-x; color: #000;}

#container {height: 100%; background: #fff; text-align: left; border: 2px solid #fff; margin: 5px auto; width: 750px;}

h1 {padding-bottom: 0; margin-bottom: 0;}

#header {width: 750px; background: url('images/stripe.gif'); height: 113px;}

#date {font-size: 0.75em; float: right; margin: 0; padding: 0; color: #666; height: 17px; width: 156px; font-style: italic;}

#navigation {width: 137px; margin-top: 5px; float: left; margin-left: 2px;}

#menu {margin: 0 0 0 10px; padding: 0 6px 0 20px; font-size: 0.75em; list-style-image: url('images/arrow.gif');}

#menu a {margin: 0; color: #666; border-bottom: 1px solid #3c9; padding: 3px; display: block; width:95px}

#menu a:hover {background: #ebebeb; color: #666; text-decoration: none;}

.vmenu {font: bold 12px Verdana; width: 100%;}

.vmenu ul {margin: 0; width: 750px; float: right; background: #fff url('images/indentbg.gif') center center repeat-x;}

.vmenu ul li {display: inline;}

.vmenu ul li a {float: right; text-decoration: none; color: #666666; text-transform: uppercase; padding: 4px 8px; border-right: 1px solid #666666;}

.vmenu ul li a:visited {color: #666;}

.vmenu ul li a:hover {color: gray; background: #fff;}

#search {margin: 0 0 5px 2px;}

#centercontent {width: 400px; margin: 35px 5px 0 15px; padding: 0 0 0 10px; float: left; display: inline; height: 1%;}

#rightcontent {float: right; background: url('images/longbox.gif') no-repeat; width: 127px; height: auto;}

#rightcontent2 {font-size: 0.75em; width: 121px; height: auto; margin-top: 24px; border: 1px solid #3c9; padding: 2px;}

#smallbox {background: url('images/smallbox.gif') no-repeat top center; width: 128px; height: auto; margin: 3px; padding-top:25px;}

#smallbox2 {font-size: 0.75em; width: 115px; height: auto; border: 1px solid #3c9; padding: 5px 5px 5px 6px;}

#footer {text-align: center; background: #ECECFF; clear: both; height: 50px; font-size: 0.66em;}

#footer p {padding-top: 10px;}

#leftareasecond {width: 165px; margin: 5px; float: left;}

#rightareasecond {width: 165px; margin: 5px; float: left;}

#content {width: 100%; margin-top: 5px;}

#rightarea {width: 125px; float: left; margin: 3px;}

#leftarea {width: 125px; margin: 3px; position: relative; float: left; display: inline; height: 1%;}

#centerarea {width: 125px; margin: 4px; float: left;}

#form {background: #f2fff2; padding: 30px;}

ul {list-style: none;}

a:link {text-decoration: none; color: #666699;}

a:visited {text-decoration: none; color: #666;}

a:hover {text-decoration: underline;}

a:active {color: #666699; text-decoration: none;}

h2 a:link {color: #666699; border-bottom: 1px solid;}

h2, a:active, a:visited: {color: #666699;}

h2 {font-size: 1.50em; color: #666699;}

hr {height:1px; color: #666699; background: #666699; width:80%; text-align:center; margin:0 auto 10px auto;}

h3 {color: #14523e; font-size: 1.00em;}

a img {border: none;}

img {border: none;}

img.floatcenter {margin-left: 150px;}

img.center {margin-left: 13px;}

img.floatright {margin: 10px; float: right;}

img.floatleft {margin: 10px; float: left;}

.border {border: none;}

p.blue {color: blue;}

p.search {padding-top: 0; padding-bottom: 0;}

p.heading {text-align: center; font: 0.88em arial; background: #9cf; width: 200px;}

p.textindent {text-indent: 15px; font: 0.75em arial;}

p.shaded {background: #bfdfff; font: 0.75em arial;}

p.text {font: 0.75em arial;}

p.right {float: right;}

p.donate {text-align: center; padding: 0;}

p {margin-bottom: 10px;}

table.text {font-size: 0.88em;}

li.italic {font-size: 0.75em; font-style: italic;}

ol.links {list-style: none;}

ol.paragraph {margin: 10px; font: 0.75em arial; list-style: decimal; padding: 15px;}

.tutorials {background: #f4f4f4; list-style: none;}

.desktoplist {color: #000; background: #f4f4f4; list-style-position: inside; padding: 5px; list-style: circle;}

.listing {color: #000; margin: 10px; width: 380px; list-style: square; padding-left: 5px; background: #f4f4f4; list-style-position: inside;}

.odd {background: #EEE;}


html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="verify-v1" content="6IIgpQrUNBBU0KpvZbDG0CoJi1jlPdaIKW/1iDF+UI0=">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META NAME="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="ROBOTS" content="NOARCHIVE">
<meta name="keywords" content="byte size office training, virtual assistant, desktop publishing, spreadsheets, web design, presentations,"><meta name="description" content="online free tutorials, virtual assistant ">
<title>Bytesizeoffice</title>
<link rel="stylesheet" type="text/css" href="stylessheet.css" media="screen">
<link rel="shortcut icon" href="/images/favicon.ico">
</head>
<body>
<div id="container">
<div id="header">
<h1><a href="http://www.bytesizeoffice.co.uk"><img src="images/logo.gif" width="300" height="90" alt="bytesizeoffice/logo"></a></h1>
<div class="vmenu">
<ul>
<li><a href="sitemap.htm">sitemap</a></li>
<li><a href="privacy.htm">privacy</a></li>
<li><a href="about.htm">about</a></li>
<li><a href="vassistant.htm">v.assistant</a></li>
<li><a href="tutorials.htm">tutorials</a></li>
<li><a href="contacts.htm">contacts</a></li>
<li><a href="index.htm">home</a></li>
</ul>
</div>
</div>
<div id="date">
<script type="text/javascript"><!--
var now = new Date(); var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September',
'October','November','December'); var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number)   { return (number < 1000) ? number + 1900 : number;
}today =  days[now.getDay()] + ", " + months[now.getMonth()] + " " +
date + ", " + (fourdigits(now.getYear())) ; document.write(today);
//--></script>
</div>
<div id="navigation">
<div id="search">
<p class="search">
<form action="http://www.google.com/cse" id="searchbox_003119959939038504956:xrke8d9eiyi">
<p class="search"><input type="hidden" name="cx" value="003119959939038504956:xrke8d9eiyi"></p>
<p class="search"><input type="text" name="q" size="20"></p>
<p class="search"><input type="submit" name="sa" value="search"><img src="images/search.gif" width="20" height="20" alt="image of search icon"></p>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_003119959939038504956%3Axrke8d9eiyi〈=en"></script>
</div>
<ol id="menu">
<li><a href="tutorials.htm">tutorials</a></li>
<li><a href="shortcuts.htm">shortcut keys</a></li>
<li><a href="office.htm">about office</a></li>
<li><a href="vassistant.htm">virtual assistant</a></li>
<li><a href="desktop.htm">desktop publishing</a></li>
<li><a href="wordprocessing.htm">word processing</a></li>
<li><a href="spreadsheets.htm">spreadsheets</a></li>
<li><a href="presentationer.htm">presentations</a></li>
<li><a href="webdesign.htm">web design</a></li>
<li><a href="blog.htm">blog articles</a></li>
<li><a href="careers.htm">career links</a></li>
<li><a href="reviews.htm">reviews</a></li>
</ol>
<div id="smallbox">
<div id="smallbox2">
<div id="cboxdiv">
<iframe width="112" height="305" src="http://www.cbox.ws/box/?boxid=1055082&amp;boxtag=x0v2c4&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#F4F4F4 1px solid;" id="cboxmain">
</iframe><br/>
<iframe width="112" height="85" src="http://www.cbox.ws/box/?boxid=1055082&amp;boxtag=x0v2c4&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#F4F4F4 1px solid;" id="cboxform">
</iframe><br>
<img alt="comment icon" src="images/comment.gif" width="16" height="16">
Tip: For software that you use a lot of, such as Office, instead of going to the program list each time, right click on the program item on the menu, then click on send to desktop (create shortcut)on Vista, or similar for other OS, you will then be able to access your Office software from the desktop.
</div>
</div>
</div>
</div>
<div id="centercontent">
<h2><a href="vassistant.htm">Virtual Assistant Service</a></h2>
<p><img class="floatleft" src="images/mouse%205.jpg" width="49" height="44" alt="image of  pc mouse">
Personal digital administration service for small businesses and individuals. Your admin tasks too much strain? Let me take the pressure out of your office tasks. Word Process your reports, charts, letters, lists, tables, CVs for individuals, and many other documents. Desktop Publishing for your leaflets, business cards, letterheads, brochures, flyers, tri-folds, and posters. Web Sites also created. </p>
<p>Format PowerPoint Presentations for you to show in your meetings or design and prepare customised Excel spreadsheets, invoices, expense reports, quotes, or any accounting form.&nbsp;Design leaflets, brochures, business cards, headed paper and logo's. Simple HTML/CSS websites designed. Experienced and qualified.</p>
<hr>
<h2><a href="tutorials.htm">Free Tutorials</a></h2>
<p>Why pay hundreds on a course when you only want to complete a task at work or at home. Here you can<img class="floatright"src="images/man using laptop.jpg" alt="image of a man looking at a laptop" width="149" height="99"> learn the basics of MS Office, Word, PowerPoint, FrontPage, Publisher, and Excel, Access, to get you by. There are a few advanced lessons too, if you want a tutorial not listed, you can suggest one, on the contact form. Many tutorials are accessible on this website or if not, you can download the tutorial via PDF. </p>
<p>MS Office 2003 tutorials are not listed specifically, but you can get online tutorials from <a href="http://www.office.microsoft.com/en-us/training/">Microsoft Office online</a> for these versions. And the newer 2007 versions.</p>
<h3>Security Tips</h3>
<p><img alt="comment icon" src="images/comment.gif" width="16" height="16">Do not rely on your anti-virus to detect viruses, worms and Trojans, most of the software available does not pick them up always, you still need to run a scan about once a week. </p>
<p><img alt="comment icon" src="images/comment.gif" width="16" height="16">Install an anti-virus, anti-spy, firewall, ad ware and mal ware program, to ensure you are covered for all eventualities, you can also buy software with one or more in the same package. You will need to run scans for each of them. </p>
<p><img alt="comment icon" src="images/comment.gif" width="16" height="16">When you browse the internet, your computer keep a cache of all the sites visited, if you do not want anyone else to view your visited sites, click on tools and then browser options and you can delete the cache and set other options for your PC such as security for sites and child controls. </p>
<p><img alt="comment icon" src="images/comment.gif" width="16" height="16">Tip: When printing out on your PC and you do not need the colour, remember to print in the black and white mode. You can usually find this in your printer properties box, you can find the properties button when you click on file/print on most printers&nbsp; also you can print draft quality, if the print does not have to be high quality to conserve ink.&nbsp;</p>
<p>&nbsp;Have useful tips for people? send me them and I will display them online here or on the<a href="http://www.bytesizeoffice.blogspot.com/"> blog. </a></p>
</div>
<div id="rightcontent">
<div id="rightcontent2">
CTRL D to Bookmark <a href="http://www.addthis.com/bookmark.php" onclick="addthis_url   = location.href; addthis_title = document.title; return addthis_click(this);" name="target_url"><img src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" style="border:none;" alt="AddThis Social Bookmark Button"></a>
<script type="text/javascript">var addthis_pub = 'quartzy';</script>

<script type="text/javascript" src="http://s9.addthis.com/js/widget.php?v=10"></script>
<script type="text/javascript">
<!--         
amazon_ad_tag = "bytsizoff-21";  amazon_ad_width = "120";  amazon_ad_height = "600";  amazon_ad_logo = "hide";  amazon_color_border = "EEEEEE";  amazon_color_link = "3399CC";//--></script>         
<script type="text/javascript" src="http://www.assoc-amazon.co.uk/s/ads.js"></script>         
</div>
</div>
<div id="footer">
<p>©bytesizeoffice.co.uk
<script type="text/javascript">
<!--
function y2k(number) { return (number < 1000) ? number + 1900 : number; }
var today = new Date();
var year = y2k(today.getYear());
document.write(''+year+' - All rights reserved');
//-->
</script>
<br>Microsoft®Programs and Logos are registered trademarks of Microsoft® Corporation.<br>
<a href="content_resource.php?Action=Links">Related Sites</a> |
<a href="http://www.freerelevantlinks.com/Link_exchange/">link Exchange</a> |
<a href="content_resource.php?Action=Webring">My Webring</a> |
<a href="links.php">links</a> |
<a href="links2.php">links2</a> |
<a href="pclinks.htm">pclinks</a> |
<a href="directories.htm">directories</a>
</div>
</div>
</body>
</html>
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Thu Mar 06, 2008 7:34 am     re Reply with quote

Hi Do you mean that the Amazon ads are breaking the content boxes? And the shout box is breaking the other content box? I dont really know what you mean the google ads are breaking the sidebars. It all works find in FF and IE7 its just IE6 that does not like it.
I worked on my code today and done your fixes,from yesterday, floated the nav to the right and ammended the content boxes, so they load quicker, which they do. I put the date in the nav bar. And now you have given me new code to work with, not sure when I can get round to this. But really appreciate you helping me out, wonder what errors i had that you changed.
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Thu Mar 06, 2008 7:51 am     Reply with quote

In IE6, any element that is larger than the width of a floated container will expand the container making it wider. The button1-bm.gif breaks the right box, IE7 and FF do not expand the container, it extends to the right outside the border.

I added a width to the left menu a so IE6 would not add white space between the links and adjusted the width and padding to line it up with the box below it and move it away from the left border so IE7 would show the numbers correctly.
I set the two sidebars height to auto and gave the footer another 10px of height to contain all the content. Also put dividers between the links in the footer.
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Tue Mar 11, 2008 3:14 am     re Reply with quote

Hi Sticks
Worked on all the fixes you gave me, and I hope it loads better now. I changed the width of the top of the content box, so It can expand the size of the left content to make it fit better. Dont you mean you added a height to th left menu? as it already had a width. Hopefully it will not work in IE6 without large gaps.
thanks again
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Tue Mar 11, 2008 4:29 am     Reply with quote

Excellent quartzy!
The only thing I might do is put space on the reviews page between the paragraphs like the first two (maybe increase it by 5px) and on some of the links on each review, a space between the name and site link.

The date does not show in FF, and in opera it extends past the right edge of the container. I would completely do away with the date.

I'm not sure what's causing this (haven't investigated) but in FF and Opera the header height is 10px higher on the Home page then all the other pages. (like adding a 10px padding to the logo image bottom.

Your doing a fine job so I'll let you investigate.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial