Jump to content

Height of a sidebar in a website.


Howlin1

Recommended Posts

I have used css to a certain extent.

But what I would like to know is; how to change

this

this.png

 

to this

this2.png

 

Essentially I want the sidebars in the first link to extend down to the bottom of the users browser like in the second link. At the moment I have that working with some javascript and I want it done with php instead.

Link to comment
Share on other sites

At the moment I have that working with some javascript and I want it done with php instead.

 

PHP executes on the SERVER and has no idea what a browser is let alone its window size.

I'm sorry, but how come you are able to get PHP to print to the users screen, what browser, browser version etc the user has?

Link to comment
Share on other sites

I'm sorry, but how come you are able to get PHP to print to the users screen, what browser, browser version etc the user has?

 

Certain information is sent to the server when a user makes a request. You can use this information to attempt to detect a users browser type.

 

The size of your screen / browser window is not sent along with this information.

Link to comment
Share on other sites

Ah okay thanks, I'm still pretty much a noob at php.

Is there any other language it could be done in? I am asking because since I have it in javascript, users might have Javascript disabled or maybe their browser doesn't support javascript (for whatever reason). Or will I need to go to another forum and ask?

Link to comment
Share on other sites

It needs to be done client side, and Javascript is the most widely supported client side language. That's it I'm afraid.

 

What your asking can be done in css however, you shouldn't need any programming language. If your stuck, ask your question in our CSS help board.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.