Results 1 to 8 of 8

Thread: Two DIV Questions

  1. #1
    Join Date
    Jan 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Two DIV Questions

    1.) I know I've seen this DIV style before, however, I forgot the coding for it. How do you make a DIV in this style? Where the text is input within the border.

    2.) Is there anyway to put cellspacing or cellpadding within a DIV? Where the text will not be so close to the border.

    Thanks for any help that you can provide.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    2.) Is there anyway to put cellspacing or cellpadding within a DIV? Where the text will not be so close to the border.
    padding-left
    padding-top
    padding-right
    padding-bottom

    can be used

  3. #3
    Join Date
    Jan 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that information, codeexploiter.

    Now, does anyone know where I can find a similar HTML snippet, as to the one I linked to?

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I'm not aware of anything that works like that. In fact, I doubt you have seen it.
    It could have been other things, like images, or two divs mixed (with various borders turned on/off, but I have no idea about using text AS the border.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Code:
    <fieldset style="width:100;height:100;border: 1px dotted #cccccc;">
    <legend align=center>ikke</legend>
    content
    </fieldset>
    More here:http://www.htmlcodetutorial.com/forms/_FIELDSET.html

  6. #6
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    To suit more your demand:
    Code:
    <fieldset style="width:300;height:300">
    <legend align=center>title</legend>
    <table width="100&#37;" height="100%" cellspacing="5" cellspacing="10">
    <tr><td align=left bgcolor="#eeeeee">
    content here
    </td><td align=right bgcolor="#000000">
    content again
    </td></tr></table>
    </fieldset>

  7. #7
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Quote Originally Posted by chechu View Post
    To suit more your demand:
    Code:
    <fieldset style="width:300;height:300">
    <legend align=center>title</legend>
    <table width="100%" height="100%" cellspacing="5" cellspacing="10">
    <tr><td align=left bgcolor="#eeeeee">
    content here
    </td><td align=right bgcolor="#000000">
    content again
    </td></tr></table>
    </fieldset>
    This is the one for his first question. If you use the following code in the above source then it will produce exactly what Cory needs.

    Code:
    <legend align=left>title</legend>

  8. #8
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

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
  •