Results 1 to 2 of 2

Thread: best way to move some centered text within a div <span> Or <div>

  1. #1

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    best way to move some centered text within a div <span> Or <div>

    Ihave an image with text below inside a centered Division and want to move them 30px to the right.
    What is the best way, both these seem to work. which is best ?
    <span STYLE="margin-left: 30px">
    <div STYLE="margin-left: 30px">
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: best way to move some centered text within a div <span> Or <div>

    Div is something like the container and span the inline content but of course u can use a container inside another container.
    If you are only using the image on left-right basis i would go with a span.If your images floats around a div container then i would go with a div.
    Of course anyone can correct me as i'm no expert on html-css.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width