+ Reply to Thread
Results 1 to 8 of 8

Thread: Old school, innit?

  1. #1
    MadameSkylark's Avatar
    MadameSkylark is offline x10Hosting Member MadameSkylark is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    66

    Old school, innit?

    I was unaware that it was considered dated to do coding without using a style sheet, but apparently...no one does it anymore. Well, I like it much better that way, so could someone tell me where to find (Or provide me with) the tags for positioning a piece of text on a page?

    IE, I want this blurb of text to sit at...
    top: 660px;
    left: 290px;
    height: 100px;
    width: 330px;

    WITHOUT using the stylesheet format, how would I just wrap the text in tags that tell it where to sit on the page?

  2. #2
    mattura's Avatar
    mattura is offline x10 Elder mattura is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    563

    Re: Old school, innit?

    css can go between <style> tags:
    HTML Code:
    <html>
    <head>
    <style>
    div {margin-top:660px;margin-left:290px;height:100px;width:330px;border:solid 1px blue;}
    div.special {font:solid 1px courier;color:#f00;}
    </style>
    </head>
    <body>
    <div>A block of text<div class='special'>Special box!</div></div>
    </body>
    </html>
    Last edited by mattura; 11-06-2008 at 04:40 PM.
    ----
    Life is a game. The conception is terrible but the graphics are amazing!
    matt.elementfx.com

  3. #3
    MadameSkylark's Avatar
    MadameSkylark is offline x10Hosting Member MadameSkylark is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    66

    Re: Old school, innit?

    Hmm...so what would that look like if the text was "I love bubbles! They are pretty!"

  4. #4
    mattura's Avatar
    mattura is offline x10 Elder mattura is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    563

    Re: Old school, innit?

    Obviously it would look awesome. Well I'm sure you can imagine...
    ----
    Life is a game. The conception is terrible but the graphics are amazing!
    matt.elementfx.com

  5. #5
    MadameSkylark's Avatar
    MadameSkylark is offline x10Hosting Member MadameSkylark is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    66

    Re: Old school, innit?

    o.O

    It WOULD be pretty awesome, but using that formula you provided, where would the text fit in?

  6. #6
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: Old school, innit?

    Why not try it yourself? You can test HTML and CSS without even using a website, just open the file in your brower
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  7. #7
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: Old school, innit?

    Quote Originally Posted by MadameSkylark View Post

    WITHOUT using the stylesheet format, how would I just wrap the text in tags that tell it where to sit on the page?
    If you don't want to use stylesheets (which are much preferred), you'll have to revert back to tables

    HTML Code:
    <table>
    <tr>
    <td width="290">&nbsp;</td>
    <td height ="600">&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td width="330" height="100">I love bubbles! They are pretty!</td>
    </tr>
    </table>
    I tend to use a mix of tables and .css for ease.

  8. #8
    crisp is offline x10Hosting Member crisp is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    85

    Re: Old school, innit?

    Quote Originally Posted by freecrm View Post
    If you don't want to use stylesheets (which are much preferred), you'll have to revert back to tables

    HTML Code:
    <table>
    <tr>
    <td width="290">&nbsp;</td>
    <td height ="600">&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td width="330" height="100">I love bubbles! They are pretty!</td>
    </tr>
    </table>
    I tend to use a mix of tables and .css for ease.
    You don't have to use tables, not using a stylesheet doesn't automatically mean you need tables. You could use in-line styles, ie styles attached to the tags, taking the original code example, with inline styles, looks like this, not a table in sight...
    HTML Code:
    <html>
    <head>
    <title>Inline styles</title>
    </head>
    <body>
    <div style="margin-top:660px;margin-left:290px;height:100px;width:330px;border:solid 1px blue;">
        A block of text
        <div style="font:solid 1px courier;color:#f00;">
            Special box!
        </div>
    </div>
    </body>
    </html>

+ Reply to Thread

Similar Threads

  1. !!!! The NEW Biggest thread !!!!
    By Russ in forum Forum Games
    Replies: 2795
    Last Post: 04-02-2012, 01:48 AM
  2. No school again for me!!!!
    By Christopher in forum Off Topic
    Replies: 16
    Last Post: 02-07-2007, 08:10 PM
  3. super short school day!
    By swirly in forum Off Topic
    Replies: 10
    Last Post: 11-22-2006, 10:42 PM
  4. School Tennis Team Problem!
    By TheJeffsta in forum Crossfire
    Replies: 7
    Last Post: 03-09-2006, 05:10 PM
  5. My School is full of brats
    By Chris S in forum Off Topic
    Replies: 5
    Last Post: 02-05-2006, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers