Results 1 to 8 of 8
  1. #1
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Taranaki, New Zealand
    Posts
    193
    Thanks
    3
    Thanked 0 Times in 0 Posts

    table size (2000)

    Good morning. I don't often use FrontPage, so I hope its not a silly question.
    I have a table. 900 pixels wide. It has 3 cells, all 300 pixels wide. I have set the width of the cells.

    However, when I add HTML text in one of the cells. It then shows a picture, it doesn't keep its width. What can I do to force the width of the cells.

    The HTML code says its "58" high and "150" wide.

    Any suggestions ???

    Thanks

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: table size (2000)

    There are ways of doing it utilising CSS
    <pre><style type="text/css">
    #maintable {
    width:300;
    }

    #maintable tr {
    height:150;
    padding: 0px;
    }
    </style>

    <body>

    ...

    <table id="maintable">
    <tr>
    <td>Hello</td>
    <td>Hello</td>
    </tr>
    </table>


    ...

    </body>

    </pre>

    Jerry

  3. #3
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Taranaki, New Zealand
    Posts
    193
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: table size (2000)

    Thanks
    At the moment I add the cell content by using
    Insert - advanced - HTML... Do I use your script with that ??

    What I'm trying to say.. do I incorporate my script with yours ??

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: table size (2000)

    Do you mean the picture is forcing the column width to be greater than 300 pixels? Have you set the width of the picture to be less than 300 pixels?
    Attached Images Attached Images
    • File Type: gif x.gif (14.5 KB, 0 views)

  5. #5
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: table size (2000)

    Hi Karat,

    To add to all the suggestions...

    Bear in mind that a table contains table and cell properties. You say you created a table of 900 pix wide. This will automatically make the three columns balanced in the wide of the table (at 300 pix), but you still need to force the cells within the table to remain at 300 pix if its necessary, else it will stretch according to any content it recieves.

    Select all the cells in the table and right click.
    Choose Cell Properties
    Select the Specify Width option and type 300 into the text box.
    Ensure pixels is selected
    Choose OK

    This will ensure that the cells remain at 300 pix unless you add a picture of proportions greater than 300 pix in width as Leif suggests. If you type text into the cells, these will wrap neatly between the 300 pix width.

    See screenshot of cell settings...
    Attached Images Attached Images
    Regards,
    Rudi

  6. #6
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: table size (2000)

    Hi Rudi

    This is where I particularly "hate" WYSIWYG HTML editors as they generate the code for us and we have little control over it [img]rudi.jpg[/img]

    Height and Width attributes can be placed in this tag if it is required for accessibility checking.
    Jerry

  7. #7
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: table size (2000)

    I can quite believe that you are the perfectionist when it comes to web page design, and with the code you are posting, its obvious that you have experience with it. I do not have lots of experience with direct HTML, but using FrontPage I maintained a personal site for over a year with constant modification and upgrade. The site turned out really well after continued development over that year, and I was quite proud of it. I used tables extensively and managed all the graphics, animations and banners with the appl. I very rarely had to delve into the code pages of Frontpage except when I was provided pieces of HTML from my host to add to pages; items like the Favicon and hit counters etc!!

    We both speak from experience (allbeit that yours is much more than mine), yet we stand on opposite sides of the spectrum, based on preference. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    Regards,
    Rudi

  8. #8
    4 Star Lounger
    Join Date
    Mar 2004
    Location
    Griffith, New South Wales, Australia
    Posts
    507
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: table size (2000)

    Hi Rudi,

    I can see both sides of this discussion and think that our decisions and preferences are based on our needs and experiences.

    I have created and continue to maintain a number of sites and have used a wide range of applications and proceeses to achieve them. I have used Frontpage, Nvu, Kompozer as well as handcrafting from scratch using Notepad type text editors.

    While I am not the perfectionist that Jezza is, I certainly have been known to "like my control" so overall prefer to be minimalist. So while I dont mind the graphic interface of a WYSIWYG editor, I like being able to read the HTML and CSS underneath it all to make sure that I get what I need from these applications.

    And I like learning, so I will be doing more with Expression Web this year and perhaps some ASP in the future.

    Just some of my thoughts

Posting Permissions

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