How do I change positions in HTML?

Discussion in 'HTML & Website Design' started by finucane, Nov 25, 2008.

  1. #1
    I would like to know how to change the position of the source code without changing the content of the page. So for example the first paragraph in the source would appear further down on the visible page.
     
    finucane, Nov 25, 2008 IP
  2. designervalley

    designervalley Peon

    Messages:
    237
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Through positioning you can change the code order without disturbing the design of your page.
     
    designervalley, Nov 25, 2008 IP
  3. iwtmmo

    iwtmmo Active Member

    Messages:
    832
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I think you need to use <div>
     
    iwtmmo, Nov 25, 2008 IP
  4. finucane

    finucane Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't know exactly how to use div.
    What I would like to do is to have the code for the rectangular block of ads on
    http://information-4u.com/accounting/index.html
    to appear before the ads under the banner, without changing the appearance.
    I am guessing that I would need to put the code for the rectangular ads somewhere at the top of the source page, and then write something where the code is now, so that it doesn't appear at the top of the page.
    I am sure it is easy if you know what you are doing. I would appreciate it if someone would help me.
     
    finucane, Nov 25, 2008 IP
  5. finucane

    finucane Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When I use positioning it goes over the text!!!
     
    finucane, Nov 26, 2008 IP
  6. myst729

    myst729 Peon

    Messages:
    289
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    myst729, Nov 26, 2008 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Okay, first thing first, you're using a table-based layout which is locking your site's structure into a particular design which will make it difficult, if not outright impossible, to redesign without scrapping the code and switching to a semantic markup structure.

    Second, those ads are being served by JavaScript, so you'll need a container to reference them via your stylesheet if you're going to have any chance of rearranging them in the manner you envision. To make a long story short, it's not possible with your current document structure.
     
    Dan Schulz, Nov 26, 2008 IP
  8. finucane

    finucane Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I think I have fixed the problem. As I am not an expert I used my own logic. I wrote a position absolute and then moved the text it was covering by inserting lots of breaks.
    Please let me know what you think. Will it work?
     
    finucane, Nov 26, 2008 IP
  9. 2advance

    2advance Well-Known Member

    Messages:
    2,614
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    140
    #9
    I think, you want to use <div> and then position the paragraphs. well, i am not expert in CSS.. just try this..
     
    2advance, Nov 27, 2008 IP