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:20 PM
Post #2

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

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

Hi! tongue.gif

Why do you use an XHTML doctype when you write HTML? I suggest that you change to a HTML doctype, because that's probably what you'll serve the page as anyway.

You have a fat CSS error here. IPB Image
h2 {
float: absolute;...}
Did you mean 'position: absolute'?

I don't have an explanation, but a fix. If you give the AP blocks an offset you'll get them to where you want them to be. For example #nav:

#nav {
position: absolute;
top:0; left: 0;
margin-top: 75px;
margin-left:-5px; }
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: 19th November 2019 - 11:13 AM