The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Issues with compatiblity
post Sep 15 2006, 05:58 PM
Post #1

Group: Members
Posts: 2
Joined: 15-September 06
Member No.: 143

Hey guys im pretty new at all this, i took a class at school on html and css and learned alot of this stuff but there is so many little tricks and methods to fix issues that i really dont want to do it much but I need to finish my portfolio site and the only option I have is handcoding in crimson editor and using my css anthology book. Well on to the main problem I have a great looking layout in firefox but when i put it in IE it throws my nav from the left to the right. Im gonna past all the code HTML first and CSS second hope that its ok to paste it all, its usually better to see all then just a bit. rolleyes.gif


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<title>Portfolio for Bryan Fritz</title>
<div id="nav">
<li><a href="index.html">Design</a></li>
<li><a href="index2.html">Photography</a></li>
<li><a href="index3.html">Print</a></li>
<ul id="albumlist">
<li><img src="images\audi.jpg" alt="" width="300px" height="225px" />An Advertising Concept.<br> Program used Photoshop</li>
<li><img src="images\audi2.jpg" alt="" width="300px" height="225px" />Another Advertising Concept <br> Program used Photoshop</li>
<li><img src="images\frizzle.jpg" alt="" width="300px" height="225px" />Unconventional Logo <br> Program used Photoshop</li>
<li><img src="images\logos.jpg" alt="" width="300px" height="225px" />Logo Ideas <br> Illustrator and Photoshop</li>



body {
background-image: url(images/portfoliosite.jpg);
background-repeat: no-repeat;
background-position:top left;
h2 {
float: absolute;
width: 45px;
#nav {
position: absolute;
margin-top: 75px;

#nav ul{
list-style: none;
#nav ul li{
margin-bottom: 30px;

#albumlist {
list-style-type: none;
margin-top: 60px;
width: 850px;
#albumlist li {
margin-top: 10px;
margin-right: 10px;
#albumlist img {

Thanks for any help or suggestion that may come in the future Bryan
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Reply to this topicStart new topic
post Sep 15 2006, 06:32 PM
Post #2

Group: Members
Posts: 2
Joined: 15-September 06
Member No.: 143

Thanks I cant say that with a quick read I understand all that you said but I am sure that after a few times over I will get it. blink.gif About positioning anyways, I am so up in the air, I read through the book I have and its kinda sparce on how and what position applies to all things html, do you have a dummies guide or something that does a really good job explaining position that i could check out? On the doc type I read another post about doc type and I was somewhat confused, now i know that xhtml is just html rewritten in xml or at least I think so, but isnt it better to code then in xhtml than html? or am I just totally out of my league? thanks again. wacko.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post Sep 15 2006, 06:53 PM
Post #3

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

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

XHTML has a slightly different syntax than HTML. Most of us around here see no advantage in using XHTML. If you want it to work in IE Windows you have to serve it with the content-type text/html which means that browsers will treat it as HTML anyway. So all you've gained is a few extra bytes of slashes (which you are lacking).

If you don't give an absolutely positioned element an offset it should basically stay where it was without positioning (that's not all true but close enough) only it will be "out of the flow", i.e. removed from the context of the page flow and on top of surrounding elements. There is no reason it should go waltzing off to the right margin, so there must be something in your code causing that but I don't see it right off.

I found this tutorial useful.
There are probably lots of newer ones but I'm afraid I don't have any bookmarked.

Crimson editor is cool. Just get friendly with the validators and you're all set. cool.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 17th November 2019 - 10:40 AM