SitePoint Sponsor

User Tag List

Results 1 to 16 of 16

Thread: table problem

  1. #1
    SitePoint Guru wild boar's Avatar
    Join Date
    Aug 2003
    Location
    illinois
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    table problem

    For the life of me, I just can't seem to figure this out.....

    On the page www.illinoiswinecellar.com/shop/customer

    go there, and you will see my header, the height of the grey background part of the table is a little to high.

    I can't get it to shrink down, If I take the <form> part out of it, it'll go to back to the normal width. Is there any fixes for this?

    I'm stumped

    thanks in advanced,
    chris

  2. #2
    SitePoint Zealot cmorbutts's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wildboar,

    You can either do it like this...

    <table>
    <form name="winery">

    <tr>
    <td></td>
    </tr>
    </form>
    </table>

    or

    <table>
    <tr>
    <td>
    <form style="margin-bottom: 0">
    </form>
    </td>

    </tr>
    </table>

  3. #3
    SitePoint Guru wild boar's Avatar
    Join Date
    Aug 2003
    Location
    illinois
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    jason,
    thanks, I appreciate it! i looked at your website by the way, you do some really nice work.

    have a good day,
    chris

  4. #4
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just a bit of an explaination as to why it occurs - it is because the form tags are inside the cell.

    Placing the tags between the <table> and <td> tags as per cmorbutts first suggestion is the simplest way but a bit frowned upon (bad coding practice). The 2nd suggestion is the better way.

    i looked at your website by the way, you do some really nice work.
    I 2nd that!

  5. #5
    SitePoint Guru wild boar's Avatar
    Join Date
    Aug 2003
    Location
    illinois
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, I'm not much up to coding standards these days.. I've been doing html for 8 or so years and in the beggining, when I would read the tutorials, I never once read what is bad coding, how you should do this correctly, it went like this

    <b> = bold
    <i> = italic

    </> = close a tag

    and so on...

    thanks!

  6. #6
    SitePoint Zealot cmorbutts's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your kind comments guys! Glad you droppd by my site.

    I understand what you mean. Most of the time, when I start on a project I try to set a good foundation for my team with regards to coding standards etc. Then halfway through I get so sick of it I just do whatever it takes to get it over and done with...

  7. #7
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,254
    Mentioned
    113 Post(s)
    Tagged
    1 Thread(s)
    The problem with forms is there is a predefined amount of space surrounding them. You'll need to set margin and padding to zero in the style for the form and then I think it'll line up OK.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style

  8. #8
    SitePoint Guru wild boar's Avatar
    Join Date
    Aug 2003
    Location
    illinois
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cmorbutts
    Thanks for your kind comments guys! Glad you droppd by my site.

    I understand what you mean. Most of the time, when I start on a project I try to set a good foundation for my team with regards to coding standards etc. Then halfway through I get so sick of it I just do whatever it takes to get it over and done with...

    Yea, I'm learning css, and on one site I started doing it all in css (just styles and fonts, not tables or anything) and half way through it was taking more time doing the css then it would be to do <font=blah> but in the long run, it'll be better to use css, cause you can change it easier.. and it's more up to standards.. I like quality, but when your running out of time, go quantity!

  9. #9
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by wild boar
    I like quality, but when your running out of time, go quantity!
    Once you've worked with CSS more and get used to it you'll actually be able to come up with an XHTML/CSS layout faster than the "old way". I know it's about the only way I can work nowadays. Tables have become slow-going for me.

  10. #10
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The way I work (and am teaching my students to work) is to design in logical blocks separated by <div>s. Then you can move these blocks round the screen using CSS. Then you can pretty them up, make whatever changes you need, then "do" the detail of each block.

    Top down. This way semantic layout comes before making it look pretty.

    Of course you have to have an idea of what you want to do before breaking down into logical blocks, but do not much more than that before getting a handle on the content. I'm finding that Denim helps, although the user interface is not traditional. - http://guir.berkeley.edu/projects/denim/
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  11. #11
    Non-Member ZealotDesigns's Avatar
    Join Date
    Nov 2003
    Location
    Columbiana, Ohio
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, I've just about got the hang of css, but what the heck is xhtml?

  12. #12
    SitePoint Guru wild boar's Avatar
    Join Date
    Aug 2003
    Location
    illinois
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Best thing to do is go to google.com and search "What is xhtml"

    I can't give you an exact defenition, but google can!

  13. #13
    Non-Member ZealotDesigns's Avatar
    Join Date
    Nov 2003
    Location
    Columbiana, Ohio
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    basically search for xhtml because they exclude "what" and "is" in the search. I will, I was just looking for a quick answer.

  14. #14
    SitePoint Guru wild boar's Avatar
    Join Date
    Aug 2003
    Location
    illinois
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually, I got different search results when searching for what is xhtml, and just xhtml...

    when searching for what is xhtml, I got a defenition from google, the first result.

    http://www.google.com/search?hl=en&l...=what+is+xhtml

  15. #15
    Non-Member ZealotDesigns's Avatar
    Join Date
    Nov 2003
    Location
    Columbiana, Ohio
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just looked it up on w3schools. This is stuff that I already do. Do I just change the doc type declaration and change the extension to xhtml?

  16. #16
    Non-Member ZealotDesigns's Avatar
    Join Date
    Nov 2003
    Location
    Columbiana, Ohio
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm... O well, I stand corrected, guess they only take out "how to" and "and" maybe few others.
    Quote Originally Posted by wild boar
    actually, I got different search results when searching for what is xhtml, and just xhtml...

    when searching for what is xhtml, I got a defenition from google, the first result.

    http://www.google.com/search?hl=en&l...=what+is+xhtml


Bookmarks

Posting Permissions

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