46 users online (0 members and 46 guests)  


  Results 1 to 7 of 7

Related

  1. wrap text in a cell of a html table    Forum: HTML Forum
    Replies: 14
  2. Wrapping text around a cell in a table    Forum: HTML Forum
    Replies: 0
  3. Can't Add Text Under My Table    Forum: HTML Forum
    Replies: 5
  4. Align text to Centered table    Forum: HTML Forum
    Replies: 6
  5. OnClick with Text in Table    Forum: HTML Forum
    Replies: 3
  1. #1
    C.Whyte's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Oct 2005
    Location
    Santa Cruz, CA
    Posts
    64

    Help with table incorporation with text

    Hello everyone, I need some help with adding objects to the right of my text on an html page. I know how to add an image incorporated to the right of text:
    Code:
    text textext text textext text text<img src="images/storyPIC/stupid/stupid_honk.jpg" width="164" height="137" style="float:right; margin-left:10px; margin-bottom: 10px" /> text text text ext text textext text textext text textext text text
    But how do I do that for an object / table (lets say a small rectangle that is a "Join our mailing list" box or something. Does anyone have any info on how to do this? It seems as it would be pretty easy, but for some reason I just can't figure it out.

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Help with table incorporation with text

    Hi there C.Whyte,

    does this help...
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>text span text</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <style type="text/css">
    <!--
    div {
         font-family:verdana,sans-serif;
         font-size:20px;
         text-align:center;
         margin-top:30px;
     }
    div span {
         padding:5px;
         border:1px solid #000;
     }
    -->
    </style>
    
    </head>
    <body>
    
    <div>
    This is text and <span>this is a css styled span</span> and this is more text.
    </div>
    
    </body>
    </html>

  3. #3
    C.Whyte's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Oct 2005
    Location
    Santa Cruz, CA
    Posts
    64

    Re: Help with table incorporation with text

    Hmm, maybe. I'll toy around with it a little tonight. Thanks for the amazingly fast response!

  4. #4
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Help with table incorporation with text

    Hi there C.Whyte,

    if you find that it does not suit your purposes, then give a detailed idea of your
    requirements and I am sure that we will be able to find a suitable solution.

  5. #5
    C.Whyte's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Oct 2005
    Location
    Santa Cruz, CA
    Posts
    64

    Re: Help with table incorporation with text

    I toyed around with the code you gave me and I think it's a little high-tech for what I was looking for (I'm still pretty new with putting together webpages).

    Basically for all my pages I start with the template I put together (I use Dreamweaver). With the template, there is a single white spaced area where I add the content / pictures / other things to. I usually just type text in that area and add pictures (with the code I pasted above) within the text so that it flows nicely.... "pictures within the text."

    But now I want to do that same concept, except for instead of a picture being incorporated with the text, I would like to be able to add things like Tables, Mailing list entries, ect. Basically other things besides pictures.


    I know there has to be an easy way to do this, I just have absoultely no idea.

    Attached is a thumb of what I am talking about. A, B, C, and D are areas where I would like to add things such as Tables, ect.

    Again, thanks for the help Coothead, i'm feeling pretty about this stuff still.

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Help with table incorporation with text

    Please use the attachment function to upload your image, it helps keep the forums clean and easier to read.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  7. #7
    reselloutlet's Avatar
    Disabled

    Status
    Offline
    Join Date
    Feb 2006
    Posts
    10

    Re: Help with table incorporation with text

    I don't know if this is something that can help you but if you are trying to have tables or divs next to regular text you can try using the position codes. Here is an example

    <div style="position:absolute;top:0px;left:1px">
    That will position the div at the top left corner of your page. You can change the top number and left number to reflect where exactly on your page you want it to be.
    You can use css to make the div look like a table and have colored background font and so on as well...



Tags for this Thread