Jump to content


CSS Problem


4 replies to this topic

#1 Hoot

    * Hooty Tooty Fruit *

  • Members
  • PipPipPipPip
  • 1,346 posts
  • Gender:Male
  • Location:Canada
  • Interests:Making Websites, Working in 3D, Playing the Drums

Posted 29 September 2005 - 10:09 PM

I am having a problem with my CSS, ok right now I am not coding my site with <div> (I know theres more that that to code that part) but I am useing tables at the moment with CSS setting all of the cell properties, and for some reason I cant get my site to go to a height of 100% in opera, it works in IE and FF fine.

Hoot

#2 ivanthem

    Young Padawan

  • Members
  • Pip
  • 12 posts

Posted 29 September 2005 - 11:21 PM

Posting your current code may be of some help :D

#3 Twenty2Pixels

    Young Padawan

  • Members
  • Pip
  • 28 posts
  • Location:New Jersey

Posted 29 September 2005 - 11:40 PM

Yeah, the problem is the IE, Firefox, And Opera all read CSS coding differently. You may want to figure out alternative ways to do these things, but it is not always easy. Width=100% seems to be a big issue with browsers, aswell as height=100%.

You may want to set it to an actual height, like 550 for a 800x600 screen.

You can also add some breaks, <br>

But most importantly, dont worry about it. Most of your users are going to be using Internet Explorer, and the more serious Firefox. Barely any percentage of the internet uses Opera. I wouldn't even take it into consideration that Operea can't see the site exactly as formatted. Although if Opera wasn't able to display your page at all, then you may need some help. But just for some formatting glitches, don't worry about it.

#4 dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 03 October 2005 - 04:50 PM

I've learned from just playing around with the script how to make it go to the bottom and stuff here is just an example:

*
{
   margin:0px;
   padding: 0px;
}

html
{
   height: 100%
}

body
{
   height: 100%;
   Blah
   blah
   blah
}

notice how you put height 100% in the Hhtml part and in body. the html make opera and FF go to the bottom and in the body it does that for IE.

dEcade

Edited by dEcade, 03 October 2005 - 04:51 PM.


#5 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 03 October 2005 - 10:09 PM

yep, what decade said is what i do, but we can shorten that css to:

*{
    border:0;
    margin:0
}

html, body{
    height:100%
}

but i've never actually tested that in opera...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users