Author Topic: CSS gurus  (Read 484 times)

Offline moose

  • Gold Member
  • *****
  • Posts: 2702
      • http://www.ccrhl.com
CSS gurus
« on: February 10, 2009, 02:23:26 PM »
Could anyone here familiar with CSS help me debug this?

The page comes up fine in Firefox, but in IE all my containers are moved way to the right. Hard to explain and I'm sans a web host to show an example at the moment.

I know I rely too much on absolute positioning..but it was never a problem before... I feel like im missing something very simple here...


--
index.css

body  {
   text-align: center;
   background-color:#003333;
   margin: 0;
   padding: 0;
   font-family:Verdana, Arial, Helvetica, sans-serif;
}

#sign {
position:absolute;
   left:260px;
   top:130px;
}

#collage{
position:absolute;
   left:500px;
   top:135px;
}
#wrapper {
   background-repeat:repeat-y;
   background-position:center;
   background-color:#FFFFFF;
   width:750px;
   height:920px;
   padding:0 0px;
   margin: 0 auto;
}

#links   {
position:absolute;
left:450px;
top:860px;
text-align:center;
font:Arial, Helvetica, sans-serif;
font-size:12px;
}

#button {
position:relative;
left:10px;
top:120px;
   width: 176px;
   padding: 100px 10px 10px 10px;
   margin-bottom: 1em;
   font-family: Arial, Verdana, Tahoma;
   font-size:12px;
   color: #333;
   }
#button ul {
      list-style: none;
      margin: 0;
      padding: 0;
      border: none;
      }
      
   #button li {
      border-bottom: 1px solid #0f3120;
      margin: 0;
      }
#button li a {
      display: block;
      padding: 5px 5px 5px 0.5em;
      color: #000;
      text-decoration: none;
      width: 100%;
      }

   body #button li a {
      width: auto;
      }

   #button li a:hover {
      background-color: #0f3120;
      color: #fff;
      }

#text {
position:absolute;
width:400px;
left:520px;
top:550px;
text-align:left;
font:Arial, Helvetica, sans-serif;
font-size:12px;
}      

#bottom {
font-size:10px;
color:#FFFFFF;
width:750px;
   height:60px;
   padding:10px 0px;
   margin: 0 auto;
position:absolute;
   left:253px;
   top:920px;
   background-image:url(../images/bottom.jpg);
}

---
<----ASSASSINS---->

Offline ghostdancer

  • Aces High CM Staff
  • Platinum Member
  • ******
  • Posts: 7562
Re: CSS gurus
« Reply #1 on: February 10, 2009, 03:51:58 PM »
Actually impossible to say without actually looking at the HTML code of your home page. You may have a missing closing </div> or it may be your nesting structure of elements.

You need to give the url to the home page so it can be examined.
X.O. 29th TFT, "We Move Mountains"
CM Terrain Team

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Re: CSS gurus
« Reply #2 on: February 10, 2009, 03:56:01 PM »
What version of IE?  7.0 or 6.0?

Offline Spikes

  • Aces High CM Staff
  • Plutonium Member
  • *******
  • Posts: 15853
    • Twitch: Twitch Feed
Re: CSS gurus
« Reply #3 on: February 10, 2009, 04:07:14 PM »
IE has always had problems with CSS. Takes a lot of re-coding to get it cross-browser compatible.
i7-12700k | Gigabyte Z690 GAMING X | 64GB G.Skill DDR4 | EVGA 1080ti FTW3 | H150i Capellix

FlyKommando.com

Offline forHIM

  • Gold Member
  • *****
  • Posts: 2534
Re: CSS gurus
« Reply #4 on: February 10, 2009, 06:09:16 PM »
down with IE!

yes, without a page/url to view it's sort of hard to tell where the problem is.  I'd look at the web developer add-on to firefox and/or firebug to help find CSS/html issues.

Offline RTHolmes

  • Plutonium Member
  • *******
  • Posts: 8260
Re: CSS gurus
« Reply #5 on: February 10, 2009, 06:34:31 PM »
IE sucks, cant even comply with CSS 1 which has been an open standard for over 12 years now. just another piece of junk out of redmond  :furious


point the page at the W3C css validator page, thats a good place to start.
71 (Eagle) Squadron

What most of us want to do is simply shoot stuff and look good doing it - Chilli

Offline moose

  • Gold Member
  • *****
  • Posts: 2702
      • http://www.ccrhl.com
Re: CSS gurus
« Reply #6 on: April 04, 2009, 12:35:25 PM »
alright, so its been a while but i finally got the site in a temporary location
http://66.147.240.170/~capecodh/

right now its alittle off in firefox, which i think is just a cause of me messing around, but its the total screwup in IE thats driving me nuts

you smart guys please let me know what you think! thanks a lot!
<----ASSASSINS---->

Offline Lord ReDhAwK

  • Nickel Member
  • ***
  • Posts: 481
      • http://www.revivecomputing.com/aggressors
Re: CSS gurus
« Reply #7 on: April 04, 2009, 04:00:31 PM »
Nice design.  Write the entire thing in Flash and drop the completed .swf into a blank html document.  No cross-browser issues at all  :cool:

ReDhAwK
C.O.
The Aggressors

Offline Wayout

  • Silver Member
  • ****
  • Posts: 813
Re: CSS gurus
« Reply #8 on: April 04, 2009, 08:15:09 PM »
It's hard to say when both IE and Firefox are messed up but maybe you could try this.

Paste this snippet to your main HTML page before </HEAD>


<script type="javascript">
<!--
[if gte IE 5.5000]>
<style type="text/css">

#sign {
position:absolute;
   left:260px;
   top:130px;
}

#collage{
position:absolute;
   left:500px;
   top:135px;
}

#bottom {
font-size:10px;
color:#FFFFFF;
width:750px;
   height:60px;
   padding:10px 0px;
   margin: 0 auto;
position:absolute;
   left:253px;
   top:920px;
   background-image:url(../images/bottom.jpg);
}

</style>
<![endif]-->
</script>


(my comments) The above snippet contains the code from your CSS so it will display as before.  Try changing the 'left:'  and 'top:'  values and see what happens.  Any changes you make here will only show up in IE 5 or above.  BTW- I'm guessing the problem lies in the CSS code shown,  there could be other parts of your CSS that will need to be added to this snippet for the entire page appear correctly.   Good luck and let me know what you find.

« Last Edit: April 04, 2009, 08:17:59 PM by Wayout »
  For most people the sky is the limit.  For a pilot the sky is home.

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18829
Re: CSS gurus
« Reply #9 on: April 07, 2009, 08:00:18 AM »
your files: http://www.pogbird.com/X45/test.zip
played around with your files in DW CS3 and came up with this:
index.css
body  {
   text-align: center;
   background-color:#003333;
   margin: 0;
   padding: 0;
   font-family:Verdana, Arial, Helvetica, sans-serif;
}

#sign {
   position:absolute;
   left:250px;
   top:126px;
   width: 223px;
   height: 207px;
}

#collage{
   position:absolute;
   left:471px;
   top:131px;
}
#wrapper {
   background-repeat:repeat-y;
   background-position:center;
   background-color:#FFFFFF;
   width:750px;
   height:920px;
   padding:0 0px;
   margin: 0 auto;
}

#links   {
   position:absolute;
   left:242px;
   top:859px;
   text-align:center;
   font:Arial, Helvetica, sans-serif;
   font-size:12px;
   height: 59px;
   width: 750px;
}

#button {
   position:absolute;
   left:242px;
   top:237px;
   width: 176px;
   padding: 100px 10px 10px 10px;
   margin-bottom: 1em;
   font-family: Arial, Verdana, Tahoma;
   font-size:12px;
   color: #333;
   height: 9px;
   }
#button ul {
      list-style: none;
      margin: 0;
      padding: 0;
      border: none;
      }
     
   #button li {
      border-bottom: 1px solid #0f3120;
      margin: 0;
      }
#button li a {
      display: block;
      padding: 5px 5px 5px 0.5em;
      color: #000;
      text-decoration: none;
      width: 100%;
      }

   body #button li a {
      width: auto;
      }

   #button li a:hover {
      background-color: #0f3120;
      color: #fff;
      }

#text {
   position:absolute;
   width:443px;
   left:477px;
   top:550px;
   text-align:left;
   font:Arial, Helvetica, sans-serif;
   font-size:12px;
}     

#bottom {
font-size:10px;
color:#FFFFFF;
width:750px;
   height:60px;
   padding:10px 0px;
   margin: 0 auto;
position:absolute;
   left:253px;
   top:920px;
   background-image:url(file:///C|/Documents%20and%20Settings/Administrator/Desktop/images/bottom.jpg);
}

index.html
<html>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<link rel="stylesheet" type="text/css" href="css/index.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Cape Cod Holiday Estates</title>
</head>
<body>
<div id="wrapper"><img src="images/mainlogo.jpg" /> <!-- Beginning of background wrapper div -->
<div id="sign"><img src="images/text2.jpg" /></div>
<div id="button"> <!-- Menu -->
<ul>
   <li><a href="index.htm">Home[/url]</li>
   <li><a href="#">Resort Information[/url]</li>
   <li><a href="#">Accommodations[/url]</li>
   <li><a href="#">Rates and Reservations[/url]</li>
   <li><a href="#">Directions[/url]</li>
   <li><a href="#">Things to Do[/url]</li>
   <li><a href="#">Owner Info[/url]</li>
   <li><a href="#">Contact Us[/url]</li>
</ul>
</div>
<!-- end Menu -->
<div id="collage"><img src="images/collage.jpg" width="484" /></div>
<div id="text">
Welcome to Cape Cod Holiday Estates!

Located on the southern coast of Cape Cod, just a short distance from Nantucket Sound and South Cape Beach, Cape Cod Holiday Estates boasts both privacy and luxury. Each vacation home is located on a one-third acre lot and features a spacious sun deck or patio. A short trip to the Atlantic Ocean offers excellent boating, fishing and whale watching excursions. Enjoy all the warmth of New England in a memorable atmosphere at Cape Cod Holiday Estates.</div>
<div id="links"><!-- Beginning of affiliate links -->
<img src="images/VRI-Logo.jpg" border="0" /><img src="images/spacer.gif" width="20" height="20" border="0" />
<img src="images/rci-community.gif" border="0" /> <img src="images/spacer.gif" width="20" height="20" border="0" />
<img src="images/interval.gif" border="0" />
<p>
</div>
<!-- End of affiliate links -->

</div><!-- End of background wrapper div -->
<div id="bottom">
Cape Cod Holiday Estates

97 Four Seasons Drive

Mashpee, MA 02649

Phone and Fax: (508) 477-3377

cche@capecod.net</div>

</body>
</html>

both browsers look good locally - hope that helps
« Last Edit: April 07, 2009, 08:12:46 AM by Eagler »
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder