Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
IE sucks! Should I use IE .css hack?
Old 11-24-2009, 04:11 PM IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Well I just finished my index page, got the css and padding, etc. the way I want it. Looks GREAT on Firefox, but on IE it is horrible!!!!

Should I use an IE hack so that if the browser is IE it defaults to a IE.css sheet, instead of my master.css???

Also, I have used link buttons for moving through my site. Spacing is perfect in FF, yet IE they are like a mile away from each other vertically. How do I fix this? Thanks!!!
pityocamptes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-24-2009, 04:33 PM Re: IE sucks! Should I use IE .css hack?
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Yes, you should use conditional comments to link to a CSS file that contains only the fixes needed to kick IE into compliance. Put the link after the one to your regular style sheet, then IE reads the regular one, then the fixes, so you don't have to do a whole new complete style sheet just for it. That's par for the course in any page: "Yes! It looks great in the standards compliant browsers! Now let's see how IE butchered it so we can force it to display it right."

As for your menu issue, let's have a link to the page (preferably) or at least the code. Debugging a concept proves iffy.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 11-24-2009, 05:30 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Quote:
Originally Posted by serandfae View Post
Yes, you should use conditional comments to link to a CSS file that contains only the fixes needed to kick IE into compliance. Put the link after the one to your regular style sheet, then IE reads the regular one, then the fixes, so you don't have to do a whole new complete style sheet just for it. That's par for the course in any page: "Yes! It looks great in the standards compliant browsers! Now let's see how IE butchered it so we can force it to display it right."

As for your menu issue, let's have a link to the page (preferably) or at least the code. Debugging a concept proves iffy.

tim


Thanks!


Here is the code...
Attached Files
File Type: zip WebCopyZip.zip (2.6 KB, 2 views)
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-24-2009, 10:25 PM Re: IE sucks! Should I use IE .css hack?
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
I don't mean to be rude by asking this, but has this site been updated since 1999? That's about when load time clocks fell out of fashion. You'd do well to ditch the tables for layout as well, because that is part of your menu problem. Put a thin border around your images and each cell temporarily, and switch image display off, then look at it in IE, you'll see what the problem is.

But really, do yourself a favor and do it over without tables. Tables for layout was how I first learned, but it really didn't take me long to transition, and the lack of unnecessary code bloat was sufficient to convince me I did right.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 11-25-2009, 04:01 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Hahahaha, thanks! I do appreciate the feedback. No, I have not launched it yet, I will take the load clock off. Just goofing around...

Well that is how I originally did it in asp - moved to linux server and had to start over. I initially did not use tables. So you are saying I should just use boxes and absolute positioning?? Also what is the biggest pixel size should I use for most monitors and cards? I was thinking 900px wide max???

How do I switch image display off? Sorry for the noob questions. Thanks again!
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-25-2009, 06:53 PM Re: IE sucks! Should I use IE .css hack?
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Max width will depend on your target audience. I use a max width of 1200, some prefer more like 1000, which I still use on occasion. Few anymore use 800, but a few still do.

No, I'm definitely not saying use absolute positioning unless absolutely necessary. I'm saying use divs, floats, and use the natural document flow.

Most browsers let you turn off javascript and images, or offer plugins to let you do that. If yours doesn't, look for a plugin, usually under developer tools.

Interesting choice of username. You wouldn't, perchance, be into catapults, trebuchets, and the like?

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 11-27-2009, 04:59 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Thanks... nope, just whips, leather and chains...

Seriously though, how do you go about setting a page up without absolute positioning? As far as positioning goes, what is the best option and why? Thanks again!!
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-27-2009, 05:02 PM Re: IE sucks! Should I use IE .css hack?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
best option is no positioning at all. Just use the document flow.
Positioning is ONLY needed when an element neds to be moved from it's natural position.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-27-2009, 05:06 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Quote:
Originally Posted by chrishirst View Post
best option is no positioning at all. Just use the document flow.
Positioning is ONLY needed when an element neds to be moved from it's natural position.

OK, not sure I quite get you (document flow)? So lets say for instance I want a banner at the top, centered in the middle of the page. This is followed by a set of links below this but justified to the left. Next some text for the body but also centered in the page below the banner but to the right of the set of links... etc., etc.,... How would you go about this?? Thanks again!
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-27-2009, 05:14 PM Re: IE sucks! Should I use IE .css hack?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So a fairly standard two column layout then?

gimme about 10 mins (give or take)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-27-2009, 05:17 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Quote:
Originally Posted by chrishirst View Post
So a fairly standard two column layout then?

gimme about 10 mins (give or take)

Yes. Thank you! I really appreciate the help...
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-27-2009, 05:27 PM Re: IE sucks! Should I use IE .css hack?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.modtalk.co.uk/_site/layou...n/with-header/

http://www.modtalk.co.uk/_site/layou...ader/style.css

(the phone rang)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-27-2009, 08:07 PM Re: IE sucks! Should I use IE .css hack?
Banned

Posts: 421
Location: Boston, MA
Trades: 1
Quote:
Originally Posted by pityocamptes View Post
OK, not sure I quite get you (document flow)? So lets say for instance I want a banner at the top, centered in the middle of the page. This is followed by a set of links below this but justified to the left. Next some text for the body but also centered in the page below the banner but to the right of the set of links... etc., etc.,... How would you go about this?? Thanks again!
IE sure annoyed lot of people in the past. Problem is majority of your users gonna use IE, so you cant ignore it.

For the centered content just define a style like this

#container {magin:0 auto 0 auto;text-align:left;width:900px;}

This would create a 900px wide container centered in the middle of the page with the content inside left aligned.

Now apply this to your html like this:
<html>
<body>
<div id="container">
Bla Bla Bla....
</div>
</body>
</html>
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 11-29-2009, 10:58 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
Thanks! The biggest problem I am running into (having to absolutes) is a background picture centered in the middle of the page and that starts at about 150px down from the top. I'm not sure how to do this with the two column design as indicated above. Thanks!
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-30-2009, 03:49 AM Re: IE sucks! Should I use IE .css hack?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
background-position: 150px center;

http://www.w3schools.com/css/pr_background-position.asp
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-30-2009, 04:01 AM Re: IE sucks! Should I use IE .css hack?
francis84's Avatar
Super Spam Talker

Posts: 931
Trades: 0
I don;t knw so much on CSS, but my friend make a separate and exclusive CSS for IE alone just to make an almost perfect design.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
francis84 is offline
Reply With Quote
View Public Profile Visit francis84's homepage!
 
Old 11-30-2009, 03:51 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
OK, for some reason when I insert the buttons the main box drops. Why? Thanks!

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>Guns, Grub and Gold</title>
  <link rel="icon" href="images/favicon.ico" type="image/x-icon">
  <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" type="text/css" href="style.css">
  <![if IE]>
   <link rel="stylesheet"  type="text/css" href="SpacerMasterIE.css">
  <![endif]>
 </head>
 <body>
     <div id="main">
   <div id="header">
    <img src="images/Logo3.jpg" width="728" height="128" alt="Guns, Grub and Gold" title="Guns, Grub and Gold" />
   </div>
    <div id="col_left">
     <span id="siteseal">
            <script type="text/javascript"
              src= "https://seal.godaddy.com/getSeal?sea...6a0h"></script>
                   <br/>
                 <a style="font-family: arial; font-size: 9px" href="http://help.godaddy.com" target="_blank">
                        Go Daddy</a></span>
                    <FORM method="get" action="https://www.gunsgrubandgold.com/About Us.html">
         <input class="link" type="submit" value="About Us"  />
                 </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/Contact.html">
                     <input class="link" type="submit" value="Contact" />
                 </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/Index.html">
                     <input class="link" type="submit" value="Home" />
        </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/Financials.html" >
                     <input class="link" type="submit" value="Financials" />
                 </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/Food.html" >
                     <input class="link" type="submit" value="Food"  />
                 </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/forum/" >
                     <input class="link"  type="submit" value="Forum" />
                 </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/Products.html">
                     <input class="link" type="submit" value="Products" />
                 </FORM>
                 <FORM method="get" action="https://www.gunsgrubandgold.com/Protection.html">
                     <input class="link" type="submit" value="Protection" />
                 </FORM>
    </div>
    <div id="col_right">
     Right Column at auto width
     Content goes here
    </div>

   </div>
</body>
</html>

Code:
@charset "utf-8";
/* local CSS Document */

html, body 
{
 height:100%;
 padding:0;
 margin:0;
 background-color:black;
 background-image:url(images/Mask9.jpg);
 background-position:absolute;
 background-repeat:no-repeat;
}
#main 
{
 height:100%;
 width:90%;
 padding:0;
 margin:0 auto;
 color: #000000;
}
#header 
{
 width:100%;
 height:130px;
 background-color:#336699;
 color: #FFFF99;
 text-align:center;
}
#col_left 
 width:10%;
 border:1px solid red;
 height:900px;
 float:left;
}
#col_right
{
 border:1px solid blue;
 height:900px;
 padding:4px 5px;
}
.link
{
 border:outset;
 border-color:#0F0;
 background-color:#30F;
 color:#000;
 width:100px;
 font-weight:bold;
 margin:2px;
}
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 11-30-2009, 07:29 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
My mistake! Forgot to add a curly bracket to the CSS sheet. Works now! Modifying it, hopefully I will get it done soon...
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 12-01-2009, 04:32 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
OK, got most of it working. I would like a "footer" area, just like the header (spans the whole page width). However, when I tried to do that (using the same format as header) it is only as wide (using borders to see where it is located) as the second column. Not sure how to get it to span the entire page like the header... Here is my code so far...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>Guns, Grub and Gold</title>
  <link rel="icon" href="http://www.webmaster-talk.com/images/favicon.ico" type="image/x-icon">
  <link rel="shortcut icon" href="http://www.webmaster-talk.com/images/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" type="text/css" href="style.css">
  <![if IE]>
   <link rel="stylesheet"  type="text/css" href="SpacerMasterIE.css">
  <![endif]>
 </head>
 <body>
     <div id="main">
   <div id="header">
    <img src="http://www.webmaster-talk.com/images/Logo3.jpg" width="728" height="128" alt="Guns, Grub and Gold" title="Guns, Grub and Gold" />
   </div>
    <div id="col_left">
     <span id="siteseal">
            <script type="text/javascript"
              src= "https://seal.godaddy.com/getSeal?sea...6a0h"></script>
                 <a style="font-family: arial; font-size: 9px" href="http://help.godaddy.com" target="_blank">
                        Go Daddy</a></span>
        <div id="box1">
                     <FORM method="get" action="https://www.gunsgrubandgold.com/About Us.html">
          <input class="link" type="submit" value="About Us"  />
                  </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/Contact.html">
                      <input class="link" type="submit" value="Contact" />
                  </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/Index.html">
                      <input class="link" type="submit" value="Home" />
         </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/Financials.html" >
                      <input class="link" type="submit" value="Financials" />
                  </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/Food.html" >
                      <input class="link" type="submit" value="Food"  />
                  </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/forum/" >
                      <input class="link"  type="submit" value="Forum" />
                  </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/Products.html">
                      <input class="link" type="submit" value="Products" />
                  </FORM>
                  <FORM method="get" action="https://www.gunsgrubandgold.com/Protection.html">
                      <input class="link" type="submit" value="Protection" />
                  </FORM>
        </div>
        <div id="box2">
         <img src="http://www.webmaster-talk.com/images/WeThePeople.jpg" width="126" height="84" title="We The People"
          alt="We The People" />
        </div>
    </div>
    <div id="col_right">
        <div class="about">
            <h1 style="text-align:center;text-decoration:underline">What We Are About</h1>
           </div>
        <div class="about" style="padding-left:0px">
 About Content Here
    </div>
    <div id="footer">
       Viral
        <br />
    Guns, Grub and Gold
        <br />
       Copyright 1999-2009 © GunsGrubandGold.com
           <br />
       Mail <a href="mailto:webmaster@gunsgrubandgold.com">Webmaster</a> with questions or comments about this site.
           <br />
       <a href="Terms.html">Terms and Conditions</a>
           <br />
           <br />
           <br />
       <img src="http://www.webmaster-talk.com/images/th_biohazard.gif" width="50" height="47" text="Biohazard" alt="Biohazard" />
   </div>
     </div>
 </body>
</html>
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."

Last edited by pityocamptes; 12-01-2009 at 04:34 PM..
pityocamptes is offline
Reply With Quote
View Public Profile
 
Old 12-01-2009, 05:59 PM Re: IE sucks! Should I use IE .css hack?
pityocamptes's Avatar
Experienced Talker

Posts: 48
Trades: 0
My bad again! Forgot to close the right col with a </div> tag!! Pesky things...

Right now I'm using Dreamweaver. Does anyone know how to in Dreamweaver, or recommend another program that will highlight in different colors different closing tags??? My eyesight is not what it used to be...
__________________
"Skin in behalf of skin. A man will give up everything he owns in exchange for his life. But stretch out Your hand and strike his flesh and bones, and he will surely curse You to Your face."
pityocamptes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE sucks! Should I use IE .css hack?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.64902 seconds with 13 queries