Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder GSimpson's Avatar
    Join Date
    Aug 2006
    Location
    New Zealand
    Posts
    268
    Thanks
    9
    Thanked 0 Times in 0 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; 10-01-2006 at 03:45 AM. 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
    New Coder
    Join Date
    Jan 2006
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Regular Coder GSimpson's Avatar
    Join Date
    Aug 2006
    Location
    New Zealand
    Posts
    268
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Ok i'll give it a try.
    The internet is my Sandbox, and notepad is my Spade n' Bucket.

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    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.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

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