School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,464 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,689 people online right now. Registration is fast and FREE... Join Now!




DIV display issues.

 

DIV display issues., Chrome, good. Fx, getting there. IE, ...uh...

falkflyer

3 Jul, 2009 - 07:30 PM
Post #1

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

First, here's the site: http://scs.clanservers.com/new/

Looking at it in Chrome, it's exactly what I told it to look like (maybe not what I want it to, but close).
In Fx, the box is messed up, but I thought Fx supports min-height...
Lastly, in IE...the tabs are just...ugh.

Anyways, what can I do to fix the tabs?

Also, if you go to http://scs.clanservers.com/new/index_chrome.html , I have a badass text-shadow effect that only works in - guess - Chrome. If there's a way to get it to display properly in at least Fx, that'd be awesome.

Any help would be appreciated.

User is offlineProfile CardPM
+Quote Post


jjsaw5

RE: DIV Display Issues.

3 Jul, 2009 - 08:18 PM
Post #2

I must break you
Group Icon

Joined: 4 Jan, 2008
Posts: 2,656



Thanked: 25 times
Dream Kudos: 125
My Contributions
Each browser handles things differently you are probably going to need to code for each browser to handle it.

Are you using style sheets?
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

3 Jul, 2009 - 08:20 PM
Post #3

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

Yes, I have a stylesheet at the top of the page.
User is offlineProfile CardPM
+Quote Post

neit

RE: DIV Display Issues.

4 Jul, 2009 - 05:35 AM
Post #4

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
The code will need to be rewritten, did you handcode this or did some software do it?

Heres a tutorial on using a drop shadow effect with firefox. I have not tested
this so I do not know how successful it is.
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 10:10 AM
Post #5

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

Er...you've hidden the tutorial quite well from me..? Well if you just forgot to post a link, whatever. I wrote all the code there myself, though it's all in different styles because I had to re-learn a lot of stuff.

In any event, I'm making those tabs top priority, as those are sort of important...

Edit: Okay, so I fixed the appearance of the tabs- I had completely forgot to insert the doctype. However, IE still has issues; one, the colors on the images don't match the background color (I know for a fact they have the same hexcode originally); and two, the tabs are underneath the left header image, but should float right of it...

This post has been edited by falkflyer: 4 Jul, 2009 - 10:19 AM
User is offlineProfile CardPM
+Quote Post

neit

RE: DIV Display Issues.

4 Jul, 2009 - 10:28 AM
Post #6

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
heres the tutorial

http://www.designmeme.com/articles/dropshadows/

This post has been edited by neit: 4 Jul, 2009 - 10:28 AM
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 10:30 AM
Post #7

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

I'm sorry, for some reason Chrome wants to not let me see the link. Thanks.
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: DIV Display Issues.

4 Jul, 2009 - 12:12 PM
Post #8

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
That has to be written terribly, it doesn't display well in any good browsers (not including Chrome since it's, well, not good). BTW for your text shadow effect, use text-shadow, Chrome won't support it, nor will IE and Fx, but good browsers will, so will Safari!

I haven't really looked at it yet, but can you tell me if you're planning on writing standards compliant code and learn, or not (ie. just get it working)? That way I'll take a good look at it.

EDIT: If you didn't follow a tutorial, why would you have this code (in the wrong place, but nontheless):
CODE
/* Commented Backslash Hack
     hides rule from IE5-Mac \*/
    #header a {float:none;}
    /* End IE5-Mac hack */

and more importantly why would you be bothered about IE5 (or Mac) for a gaming clan website.

EDIT2: Oh btw, the site works fine in IE.

This post has been edited by MageUK: 4 Jul, 2009 - 12:17 PM
User is offlineProfile CardPM
+Quote Post

neit

RE: DIV Display Issues.

4 Jul, 2009 - 02:20 PM
Post #9

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
That link works fine in chrome I just tested it.

As for your site.
I would create just a site of horizontal div,
recut your site into different horizotnal images as backgrounds
then added the content.

User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 10:10 PM
Post #10

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

QUOTE(MageUK @ 4 Jul, 2009 - 12:12 PM) *

That has to be written terribly, it doesn't display well in any good browsers (not including Chrome since it's, well, not good). BTW for your text shadow effect, use text-shadow, Chrome won't support it, nor will IE and Fx, but good browsers will, so will Safari!

I haven't really looked at it yet, but can you tell me if you're planning on writing standards compliant code and learn, or not (ie. just get it working)? That way I'll take a good look at it.

EDIT: If you didn't follow a tutorial, why would you have this code (in the wrong place, but nontheless):
CODE
/* Commented Backslash Hack
     hides rule from IE5-Mac \*/
    #header a {float:none;}
    /* End IE5-Mac hack */

and more importantly why would you be bothered about IE5 (or Mac) for a gaming clan website.

EDIT2: Oh btw, the site works fine in IE.

The site doesn't work fine in I.E., for one. For B, you listed the three top used and liked browsers as "not good" (and Safari? ew!). Θ, I tried that to fix the I.E. issue with that hack from the same tutorial I learned the tabs from a while ago.
I didn't come here for you to criticize my coding styles (and by the way, it seems to display perfectly in Chrome, Fx, and Opera, as I've tested it in all three), I came here because I'd like a solution to a specific problem.

QUOTE(neit @ 4 Jul, 2009 - 02:20 PM) *

That link works fine in chrome I just tested it.

As for your site.
I would create just a site of horizontal div,
recut your site into different horizotnal images as backgrounds
then added the content.

I could only see the link in Fx, so sorry about it. Regardless, I'd like to stay away from image-based layouts, bad habit to get in to, from what I know.
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: DIV Display Issues.

4 Jul, 2009 - 10:15 PM
Post #11

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
QUOTE(falkflyer @ 4 Jul, 2009 - 10:10 PM) *

The site doesn't work fine in I.E., for one.

Yes it does. Or are you expecting it to dance around in IE? Because it looks exactly the same as in Opera to me.
IPB Image

The only reason I brought up the thing about the IE5 hack is because you said that you wrote all the code yourself, and it's pretty strange code so it should be an easy-ish fix.

This post has been edited by MageUK: 4 Jul, 2009 - 10:17 PM
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 10:26 PM
Post #12

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

I should be more specific next time, I wrote the layout myself, but I tried a lot of stuff to fix everything. For myself in I.E., the colours are off like yours, but the tabs aren't lined up properly either, it looks like they're not floating.

IPB Image

And now that you mention it, the colours are different in Opera as well. Sorry, I guess it's been a while since I last saw it.

Also, please don't cry about Vista. I'm not a huge fan, but it came with the laptop, so I'm stuck until I stop being lazy and burn the 7 beta to a disk.
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: DIV Display Issues.

4 Jul, 2009 - 10:29 PM
Post #13

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Vista's second to 7 in best OS, why would I cry about that? biggrin.gif

Give me 10 mins and I'll rebuild your page, it's like 7am so I don't have the patience to try and pinpoint the exact problem just yet.
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 10:31 PM
Post #14

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

No rush, really. I still have a lot to do before it's ready. Also, it's two in the morning for me, so I won't be on my edge either.

I just don't know enough about CSS to get this done, this is my first project in a couple of years.
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: DIV Display Issues.

4 Jul, 2009 - 10:50 PM
Post #15

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Well I'm rebuilding it here, putting the tabs back in soon. But I'm sure as you'll see the code's alot cleaner, there's a few new images (the colour issues came from dodgy PNG pallette handling) and no cross-browser hacks smile.gif

http://mageuk.com/dic/falkflyer.php

EDIT: Oh yeah, I fixed the issue with wide screens and your content header background also, just made it into a repeat.

This post has been edited by MageUK: 4 Jul, 2009 - 10:57 PM
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 10:57 PM
Post #16

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

Yay learning!
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: DIV Display Issues.

4 Jul, 2009 - 11:02 PM
Post #17

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Well, since I don't like ul-li tabs, I just copied your code, and it slotted right in (I tidied up a bit) smile.gif So at least you know the problem wasn't with that, just how it was being contained.

You now have a cross-browser fully functional site for your clan smile.gif

I didn't add all of the Google ads rubbish in there but I'm sure you can slot it in! Hope you learn from how it's built.

http://mageuk.com/dic/falkflyer.php

EDIT: According to IE8's compatibility mode, it doesn't work in IE7... But that's why we all have Windows Update enabled! biggrin.gif

EDIT2: Ohh it doesn't work due to this bug I found, luckily Firefox auto-updates otherwise it would be broken there too.

This post has been edited by MageUK: 4 Jul, 2009 - 11:07 PM
User is offlineProfile CardPM
+Quote Post

falkflyer

RE: DIV Display Issues.

4 Jul, 2009 - 11:05 PM
Post #18

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 9

Well thank you kind sir! I can only afford to pay you in endora currency, but I'm sure it will do. I appreciate the help, I guess I should go learn CSS now or something.

Also, what do you have against Chrome? I switched over from Opera right away... :[

This post has been edited by falkflyer: 4 Jul, 2009 - 11:09 PM
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: DIV Display Issues.

4 Jul, 2009 - 11:10 PM
Post #19

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
No problem, if the IE7/old-firefox float:right bug becomes an issue, you can turn the images at the left back into divs with a background image. But for a gaming clan site I guess you're all running the latest technology anyway, so it shouldn't really matter.

EDIT: Chrome's WebKit = Safari, yet it doesn't support CSS3 (like Safari), which means it sucks. Try out Opera 10! They even stole a crappy version of speed dial sad.gif My full rant's here (scroll down), lol

This post has been edited by MageUK: 4 Jul, 2009 - 11:12 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:29AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month