1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP Problem with box widths

Discussion in 'Web Development' started by selz, Mar 26, 2010.

  1. selz

    selz New Member

    Hi,

    I've got a strange problem (to me at least!) and am hoping someone can help :)

    I am using the DogCare template, which features boxes at the bottom of the index page, currently used to give a brief paragraph of news/events. I had edited this page in HTML for my own use with no problems - there was a space between the boxes, and the boxes were of uniform width, length was variable.

    I have recently converted all my files from HTML to PHP, and since doing so, the boxes no longer display correctly - there is no gap between, and each box is a different width. The text within the boxes does not extend as far across the box as it used to. I have compared the code for the HTML & PHP versions, and cannot spot a difference, and the Stylesheet used has not changed.

    Has anyone has this problem in the past - how do you overcome it? This is driving me batty, as it makes the page look scruffy and I can't work out how to fix it!


    I hope this all makes sense, and hope desperatly that you can help!

    Thank you in advance!

    Selz
     
  2. selz

    selz New Member

    Ok, I think all I need to know is how to set the boxes (I am using 3) to a set width, and to make the text within the boxes go further across the box instead of wrapping about 2/3 across. The rest I think is my CSS (e.g. lack of space between). Hope this makes helping me a little easier! :)
     
  3. enigma1

    enigma1 New Member

    There should be a difference between the HTML and PHP versions as everything displays on the browser at the end. If you are using tables for the boxes check if you have the width="100%" setup for the table container.

    If you are using DIVs again check if the width of the container allows the text to take the maximum width of the box. If you have doubts between the php/html versions, you can always save the html content as a separate page run it with the browser and check if the associated stylesheets are loaded.