1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CSS Positioning

Discussion in 'HTML & Website Design' started by jewels1, May 2, 2010.

  1. #1
    Hey,

    I was wondering if anyone knows how to create a table that will take absolutely 100% of the top part of the page. I know this can be done by defining "top:0px;left:0px;position:absolute;", but if I set the position to be absolute for that table, all the tables after that one are getting messed up and it forces me to set a "top:XXpx" for each one of the tables after the top one so it will not be behind the top table.


    Any ideas?
    Thanks,
     
    jewels1, May 2, 2010 IP
  2. mrukjames

    mrukjames Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you give us some basic code to work with as an example? You may also want to try CSS as I kind of view tables as outdated. I have recently upgraded my page to use CSS instead of tables. It feels more cleaner and less complicated.
     
    mrukjames, May 2, 2010 IP
  3. johns123

    johns123 Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use <div> tage to set align and with with height for your css code...
     
    johns123, May 2, 2010 IP
  4. prithwirajsaha83

    prithwirajsaha83 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    a tutorial on css positioning
    www . knowledge-transfers . com/it/css-positioning
     
    prithwirajsaha83, May 3, 2010 IP
  5. ericpond

    ericpond Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ya if you give some code for example then we can try in it and try to solve it. But i want to tell you one thing if necessary then use position otherwise use float or nothing. Because when you use position it changes your all settings with other images also.
     
    ericpond, May 3, 2010 IP
  6. mubashirnisar

    mubashirnisar Banned

    Messages:
    2,186
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #6
    y dont u use div instead of tables ... i guess through div u can do it quite easily!
     
    mubashirnisar, May 3, 2010 IP
  7. efraim0net

    efraim0net Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    this short code css may help you :

    html { padding:0px;margin:0px;}
    body {padding:0px;margin:0px;}
    table { margin:0px; } /* your table id, or table html tag */
     
    efraim0net, May 3, 2010 IP
  8. sawanbatahan

    sawanbatahan Peon

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hello, that code is one of my answers to a previous question. the numbers there are just random. I had nothing particular in mind when i put those in.

    to answer your question, you must remember that a positive integer will move the object opposite its description from point of reference:

    position relative, left moves the object right
    relative, top moves it down

    as the 1st reply said, most of the time you 'eyeball' the position. but since you have rulers it might help you to know that 1 inch is equal to 96px
     
    sawanbatahan, May 4, 2010 IP
  9. master99

    master99 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    div is easy then tables..
    CSS guideline see link below
    tutorials99.com
     
    master99, May 6, 2010 IP
  10. Renejr818

    Renejr818 Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    id recommend w3schools for you Oo
     
    Renejr818, May 7, 2010 IP