Web Analytics Made Easy -
StatCounter Aligning To The Right. - CodingForum


No announcement yet.

Aligning To The Right.

  • Filter
  • Time
  • Show
Clear All
new posts

  • Aligning To The Right.

    On my new website, http://freewebs.com/untitled-productions the productions page was coming along to smoothly it was almost like magic untill I came to detailing,

    So my question is in this little snippet,
    <div id="content-title">
    <a href="productions/the-onset.html">The Onset</a><div align="right">-Movie</div>
    How do i align that div that contains '-Movie' to the right without jumping a line down. See the productions page for the problem.

    Thanks so much!
    Last edited by GSimpson; Sep 30, 2006, 10:45 PM. Reason: I realised There was I bit much extra text than needed.
    The internet is my Sandbox, and notepad is my Spade n' Bucket.

  • #2
    I'm sure someone will correct me if there is an easier way to do this, but just put the <a href="productions/the-onset.html">The Onset</a> into it's own div and give both that and the -Movie div a css property of float: left;


    • #3
      Ok i'll give it a try.
      The internet is my Sandbox, and notepad is my Spade n' Bucket.


      • #4
        Guessing that this problem is already solved since the solution that I would have offered already seems to be in place. Unlike what Revolution suggested, you would have floated the “-Movie” div to the right (not left).

        On another note, the code on that page could be more efficient if it used classes instead of inline CSS for the floats and fonts. It could also use a doctype declaration and relegate deprecated attributes on the body element to CSS.