The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Website programming question

CronusCronus Registered User regular
edited February 2007 in Help / Advice Forum
I'm currently making a website for my game. It is nothing fancy, and I'm just using CSS and HTML, but I have one problem that I can't fix well. I have some pages that don't fill some monitors. I use the <div class=""></div> tags to create separate text areas, and want to know if there is a way to make it so that my page always fills the screen as it looks very ugly with the bottom of the screen just being the background.

I don't even know if this is possible, but any help would be greatly appreciated as google and the HTML/CSS reference sites I use have failed me with this.

Thanks.

camo_sig.png
"Read twice, post once. It's almost like 'measure twice, cut once' only with reading." - MetaverseNomad
Cronus on

Posts

  • SeguerSeguer of the Void Sydney, AustraliaRegistered User regular
    edited February 2007
    width: 100%

    ?

    Can you provide an example?

    Seguer on
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2007
    Browsers can't stretch text vertically, and if they could, it would be worse than whatever your dealing with now.

    In your first div you can do style="margin-top : ##px;"

    To make it how hug the top of the screen, but thats it.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited February 2007
    If you have multiple columns of text, there's a CSS trick to make all the columns the same length. Like, if the background colour of the columns was grey, you can make it so that they all stretch down to the length of the longest column, even if the text doesn't stretch all the way in all of the columns. Makes things look a bit tidier.

    Not sure if that's what the OP wants to do or not though.

    Szechuanosaurus on
  • CronusCronus Registered User regular
    edited February 2007
    If you have multiple columns of text, there's a CSS trick to make all the columns the same length. Like, if the background colour of the columns was grey, you can make it so that they all stretch down to the length of the longest column, even if the text doesn't stretch all the way in all of the columns. Makes things look a bit tidier.

    Not sure if that's what the OP wants to do or not though.

    No thats not it. It's that I have a div with a small amount of text that I want to stretch to the bottom of the screen so that the text box is displayed and not the background. If there is no way to stretch the box, I can hack around it. That is not a problem.

    Thanks.

    Cronus on
    camo_sig.png
    "Read twice, post once. It's almost like 'measure twice, cut once' only with reading." - MetaverseNomad
  • SeguerSeguer of the Void Sydney, AustraliaRegistered User regular
    edited February 2007
    I'm having a hard time envisioning what you're trying to describe. Can you provide an example of a page? (And sorry to be harsh, but describing to us with commas?)

    Seguer on
  • SeñorAmorSeñorAmor !!! Registered User regular
    edited February 2007
    What about using Javascript to get the height of the window and adjusting your div appropriately?

    SeñorAmor on
  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited February 2007
    Can't you just do height: 100% ? Or does that not work that way?

    Szechuanosaurus on
Sign In or Register to comment.