Jump to content

Recommended Posts

For a college assignment I was required to make a website. It is after getting graded but I would like to continue to at least try to improve my site. One of the problems I had was the height of the sidebars. I solved the problem by using a javascript script, but I am wondering if it can be done with php?

Link to comment
https://forums.phpfreaks.com/topic/223278-height-of-a-sidebar-in-a-website/
Share on other sites

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.

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?

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.

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?

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.

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.