SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Css Help!!!!

  1. #1
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Css Help!!!!

    how do i move around tables wherever i want to on the page?

  2. #2
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should only use tables for tabular data. For everything else you should use the correct semantic tag and then use CSS for styling. You can also use <div> or <span> where appropriate as extra hooks for styling an positioning elements when a semantic tag isn't flexible enough for the design.

    In terms of styling and positioning tabular data. You can style these using CSS as required.

    In either case, do you have an example of what you're trying to achieve?

  3. #3
    SitePoint Addict buildakicker's Avatar
    Join Date
    Jun 2005
    Location
    NorCal
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body>
    <div style="position:absolute; top:20px; left:20px; background:#00FF00; width:500px; height:100px;"></div>
    <div style="position:absolute; top:150px; left:120px; background:#00FFFF; width:500px; height:100px;"></div>
    </body>
    </html>
    but you would really want to use a style sheet and have the:
    <div id="style1"></div> or <div class="style1"></div>
    SKILEASES.COM - FREE rental listings!
    WILDFIREBLOG.COM - Wildland Fire microblog!

  4. #4
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya the myspace link is myspace.com/faiddesigns.

    the main windowwith the flash animation and buttons are in there own tables i need to move the tables to the center of the page. and yes i am working with div


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
  •