Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts

    2 questions (one easy, one a little harder)

    Here's the easy one.
    Is there a way for PHP to find out the height of a block of CSS? Ultimately I want to make it so two columns of text are equal in height yet do not have a fixed height. If there's another way of doing this, that would help too .

    Now for the harder one.
    I'm trying to make a content management system which will allow users to click on a button in the navigation and then display different text (by means of include(); ) in a CSS cell.

  • #2
    Regular Coder xconspirisist's Avatar
    Join Date
    Jun 2006
    Location
    Great Britain.
    Posts
    138
    Thanks
    1
    Thanked 6 Times in 6 Posts
    PHP is not capable of either of these tasks, because it is not a client side language. You could accomplish these tasks using something like Javascript.
    If I have been helpful, use the "thank" button - It makes me happy!

    xconspirisist.co.uk - homepage of my online alias
    technowax.net - a community for people interested in all forms of modern technology.

  • #3
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Hmmm, isn't there a very round about way to do the latter with PHP? For example:
    Get some type of postscript or even part of the URL
    run a few evaluating/conditionals then run statements according to the post or URL.

  • #4
    New Coder
    Join Date
    Nov 2006
    Location
    UK
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It would be possible for PHP to change the CSS style, as like you said you could make it evaluate the input and then change the css file accordingly.
    - Mark

  • #5
    Regular Coder xconspirisist's Avatar
    Join Date
    Jun 2006
    Location
    Great Britain.
    Posts
    138
    Thanks
    1
    Thanked 6 Times in 6 Posts
    Linark: PHP may be able to generate the appropriate CSS/Javascript, but it is not capable of directly interacting with the page on the client side.

    194673: Do you mean, when you click or hover over a navigation link, it displays a description somewhere else on the page?
    If I have been helpful, use the "thank" button - It makes me happy!

    xconspirisist.co.uk - homepage of my online alias
    technowax.net - a community for people interested in all forms of modern technology.

  • #6
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by xconspirisist View Post
    Linark: PHP may be able to generate the appropriate CSS/Javascript, but it is not capable of directly interacting with the page on the client side.

    194673: Do you mean, when you click or hover over a navigation link, it displays a description somewhere else on the page?
    Yea, click a navigation link then reload the content inside an area of the page.

    Also, you mentioned Javascript could fix the column heights to the an equal dynamic height; could you explain how you would do that?

  • #7
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    *bump*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •