Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-06-2007, 07:12 PM
Ravenfire Ravenfire is offline
Newbie
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
Ravenfire is on a distinguished road
Default Yet Another IE Problem

I just finished this layout and it looks and works great in every browser other than IE. In IE the background of the main section repeats instead of remaining stationary like in the other browsers.

Here's my css for that section:

PHP Code:
#body {
        
floatleft;
        
width575px;
        
height450px;
        
overflowauto;
        
backgroundurl(main.jpg);
        
colorblack;

I've tried setting the background image to fixed and no-repeat but instead of fixing it in IE it just messes it up in all of the other browsers as well. So far I haven't found a solution that will fix it in IE at all.

I'd appreciate any help anyone could give.

Thanks!
Angie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 12-07-2007, 02:08 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,478
Last Blog:
Joomla! And Incompeten...
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

You can use the CSS conditional:

Code:
<!--[if IE]>
CSS for IE here
<![endif]-->
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-07-2007, 12:43 PM
Death Slaught's Avatar   
Death Slaught Death Slaught is offline
Newbie
 
Join Date: Nov 2007
Posts: 20
Rep Power: 4
Death Slaught is on a distinguished road
Default

Use the bakground-repeat property.

Code:
background-repeat:no-repeat;
Add that, and it will work.

Hope it helps, Thanks, Death
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-07-2007, 01:35 PM
Ravenfire Ravenfire is offline
Newbie
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
Ravenfire is on a distinguished road
Default

Thanks guys! I'm still trying to figure out how to actually get it fixed in IE. Then the CSS conditional will come in handy.

I've tried no-repeat, fixed and a combination of alignment properties but adding any of these throws the image off center.

I'm thinking that since this is an e-zine instead of a professional website, I'm just going to put up a notice that not all of the layouts will work in IE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-08-2007, 12:19 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,478
Last Blog:
Joomla! And Incompeten...
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

Quote:
Originally Posted by Ravenfire View Post
I'm thinking that since this is an e-zine instead of a professional website, I'm just going to put up a notice that not all of the layouts will work in IE.
Horrible idea.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 12-08-2007, 02:07 AM
Ravenfire Ravenfire is offline
Newbie
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
Ravenfire is on a distinguished road
Default

Quote:
Originally Posted by Sidewinder View Post
Horrible idea.
I can't tell if you're being serious or making a joke (I'm terrible at internet inflection lol). Do you think it would cut back on my number of readers significantly? I just hate the idea of having to change an entire layout just because it won't work in IE. And I'll be doing one a month so I can see it really starting to get old after a while. Since this is an art related zine the design of the layout is very important to me.

I haven't given up trying to get it to work, but I still haven't been able to make it happen yet.

Edit: Okay, I've been trying different things with the CSS conditional (thanks for that Sidewinder). No-repeat doesn't work because the background just ends and the text keeps going over the main page background. Fixed doesn't work because the image gets thrown off center (you can see an example here if you look at the page in IE). So, fixed accomplishes what I want it to, but does anyone have any ideas why it's messing the image up?

Last edited by Ravenfire; 12-08-2007 at 02:58 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-08-2007, 02:52 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,478
Last Blog:
Joomla! And Incompeten...
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

I was being serious. I don't have the current statistics, but I believe IE is still the MOST USED browser. Thus not optimizing your site for IE is just stupid in my opinion, and I'm sure most people will agree. Everyone strives to create sites that are optimized for at least IE and FF. I firmly believe [and many articles agree] that the success to any business / company is their software. Whether that software be a hotel reservation system or simply a website. Whether your site is a "professional" website or not, you should still strive for professionalism - and in this instance, it is appealing to the user. I can only judge from personal experience, but if I go to a website that doesn't look good [or not optimized for my browser], I'm probably not going to stay on it long.

As for the CSS syntax, I'm not 100% sure how to use it, as I never have. I was just throwing that idea out there is one of the many solutions to your problem.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-08-2007, 03:14 AM
Ravenfire Ravenfire is offline
Newbie
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
Ravenfire is on a distinguished road
Default

Thanks for the clarification. I know what you say is true, it just gets extremely frustrating sometimes when you're trying to incorporate an artistic element into the design and it ends up working great in every browser other than IE. But you make a great point and at least working out the IE issues will enhance my problem solving skills lol.

I've almost got my problem for this layout fixed. I got the CSS syntax to work (thanks for that BTW) and ended up using this for IE

PHP Code:
#body {
        
background-attachmentfixed;
        
background-position2080%;
        
background-repeat:no-repeat;

Now I just need to figure out how to get the background image to actually sit in it's designated box instead of fixed to the main background. I think this issue is also why I had to set the background-position like it is.

I really appreciate all of the help so far!

Last edited by Ravenfire; 12-08-2007 at 03:16 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12-08-2007, 05:34 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Sorry man, I really can't understand what's wrong with that.. It is displayed PERFECT on IE for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 12-08-2007, 06:43 PM
Ravenfire Ravenfire is offline
Newbie
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
Ravenfire is on a distinguished road
Default

Great! Thanks for looking! It's almost perfect in mine, the background in the main box still moves a bit on mine but it's nothing major at all.

Thanks so much for the help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Peculiar UI Problem Needs Tackling adriyel C# Programming 2 04-06-2008 08:46 AM
So what is the problem? Patrick Computer Hardware 0 10-08-2007 03:23 PM
i have a problem please help me!!!???? stack Java Help 8 09-22-2007 04:17 PM
[C] Comparison problem Alhazred C and C++ 1 08-29-2007 05:58 AM
A small problem in the output The_Master C and C++ 3 12-13-2006 01:04 PM


All times are GMT -5. The time now is 07:49 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads