User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 426,883 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,376 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 647 | Replies: 6
Reply
Join Date: Apr 2008
Posts: 8
Reputation: Emeryl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Emeryl Emeryl is offline Offline
Newbie Poster

DIV Problems

  #1  
Apr 2nd, 2008
I've been having problems getting my layout to be compatible across browsers.

I finally got it doing what I want in IE7, but when I opened it up in Firefox it had all kinds of crazy scrollbars going on everywhere. If I took out the "WIDTH" attribute the scrollbar changed where it was in IE.
http://www.sakuracities.com/test2/index.html

Basically I just wanted it to turn out like this: http://www.sakuracities.com/yaoigames/kkmnovel1.php
I don't care that the scrollbar is gray in other browsers, just that it's where it's supposed to be and there aren't random horizontal scrollbars and such. It's probably simple stuff for professionals, but I haven't coded anything in a long time and I've never had much experience with DIV layers. I mostly just know them from trial and error.

All the stuff is right here (less than 200KB): http://download.yousendit.com/47731FBB31AE0484
I know I always like to have it open in my browser while I work on it.

If anyone could tell me what's messing it up it'd be greatly appreciated. I've spent all my time translating - I don't think I've even attempted to update the layout for around 2 years. I'm incredibly rusty.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 398
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 2
Solved Threads: 78
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Whiz

Re: DIV Problems

  #2  
Apr 2nd, 2008
In main.css, try using a pixel width of 800px or so instead of 100% for the middle class.
Reply With Quote  
Join Date: Apr 2008
Posts: 8
Reputation: Emeryl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Emeryl Emeryl is offline Offline
Newbie Poster

Re: DIV Problems

  #3  
Apr 2nd, 2008
It seems to work ok. It stayed in the same spot on IE, but moved away from the picture on Firefox.

Do you think thatwould work fine? My resolution is 2560 x 1600, so I tend to try and make things expand and contract automatically.
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 398
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 2
Solved Threads: 78
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Whiz

Re: DIV Problems

  #4  
Apr 2nd, 2008
That is a great resolution for a visitor/user but, terrible for a web designer/developer. Assume the user has the least technology available. Scale the resolution down and retest. I would also recommend keeping in mind that Windows XP is the predominant (largely) operating system on the planet. It ships with IE6 so that's one browser that I would test on. Yes, I think IE7 both looks better and has better security, but it's not my opinion that matters, it's the users'. You can't force a gun down their throat to download a different or updated browser. Google IE6 standalone to find a good, fast downloading, and low processor intensive browser. I think you're going to find that the web has changed a bit since you left it. XHTML is slowly replacing HTML, but it's not gonna be that big of a step for you. We don't use capital letters or the font tag anymore. Other than that, not much has changed. You'll find that IE is not the most standards compliant browser, but you'll learn workarounds. You'll also learn that Firefox is almost always right, even though most of the noobs claim that their site works in IE but not Firefox (mainly because their code is deprecated or incorrect and IE has fixed it for them). The main thing to remember is don't give up. In a couple of hours you'll have your page looking great in every browser, and you'll be glad you took the minute to get things right.
Above all, welcome back.
Last edited by buddylee17 : Apr 2nd, 2008 at 11:52 pm.
Reply With Quote  
Join Date: Apr 2008
Posts: 4
Reputation: OpalSos is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
OpalSos OpalSos is offline Offline
Newbie Poster

Re: DIV Problems

  #5  
Apr 3rd, 2008
hehehehe.. what you have said is right but mine is another way around. My site is best viewed using FireFox than the clumsy I.E

Anyhow I dont care much about I.E and I dont expect people visiting my site to dowload FF either.
Reply With Quote  
Join Date: Apr 2008
Posts: 8
Reputation: Emeryl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Emeryl Emeryl is offline Offline
Newbie Poster

Re: DIV Problems

  #6  
Apr 6th, 2008
I think I got it pretty much working. It's not perfect but it could be worse. I took out the WIDTH entirely, adjusted the padding a bit, and fooled around with some other things.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 115
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: DIV Problems

  #7  
Apr 12th, 2008
Realize that if you put size styles (width, height) and border styles (margin, border, padding) in the same tag or style, it will always mess up on either IE or FF. They display these styles in the opposite nesting order (FF follows the W3C standard).

The trick is to nest two tags, one with size styles, and the other with surround styles. Then YOU get to select the nesting order, and the page works on all browsers.
Last edited by MidiMagic : Apr 12th, 2008 at 3:32 am.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 10:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC