+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 11

Thread: Need a bit of help with content layout in CSS...

  1. #1
    Forum Sniper™ blueocto's Avatar
    Join Date
    Oct 2007
    Location
    Newcastle upon Tyne
    Posts
    5,251

    Need a bit of help with content layout in CSS...

    Hey guys,

    I'm building a site for my sister, and I have a blog-esque thing going on, where there will be a date stamp for each story [see attachment].

    How the heck do I get them to appear as they do, in-line with the first sentance, as I've designed?

    My current layout is like [attachment 2] at the moment.

    Any thoughts?
    Attached Images


  2. #2
    Established Member bartoszdesign's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    486
    there is for sure a clean way, but i would just do it the easy way:

    HTML Code:
    <div id="content">
      <div id="date">
        <div class="spacer">
        </div>
        <div class="date-logo">
          date
        </div>
      </div>
      <div id="content">
        <div class="spacer">
          <h2>title</h2>
        </div>
        <p>content</p>
      </div>
      <div class="clear"> </div>
    </div>
    the spacers will make sure it will be on the same height.

    edit: damn, what do i have to do to display html in here?
    Last edited by bartoszdesign; 09-02-2009 at 10:21 PM.

  3. #3
    Web Designer ranchero80's Avatar
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    299
    Create an author span class style with an align right. Make sure your H1 Tag is align left clear right.


    HTML Code:
    <style type="text/css">
    <!--
    .Author {
        font-size: 10px;
        font-style: italic;
        margin: 0px;
        padding: 0px;
        float: right;
        line-height: 15px;
    }
    h1 {
        margin: 0px;
        padding: 0px;
        clear: right;
        float: left;
        font-size: 15px;
    }
    -->
    </style>
    </head>
    
    <body>
    <h1>Heading</h1>
    <span class ="Author">Author: Judy</span>
    
    </body>
    Last edited by ranchero80; 09-02-2009 at 10:30 PM. Reason: correction

  4. #4
    Web Designer ranchero80's Avatar
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    299
    How did you go blueocto?

  5. #5
    Forum Sniper™ blueocto's Avatar
    Join Date
    Oct 2007
    Location
    Newcastle upon Tyne
    Posts
    5,251
    It wasn't the "Heading .... Author" bit I was stuck on... it was trying to get the date, to line up with each post that is created, automatically.
    I don't know if that makes sense...?

  6. #6
    aka sionnach iandevlin's Avatar
    Join Date
    Aug 2008
    Location
    Cambridge, UK
    Posts
    2,043
    You mean have the top of the date "circle" aligned with the top of the text in the post content?

    What code do you have for that div?

  7. #7
    CSS Wizardry Harry's Avatar
    Join Date
    May 2007
    Location
    Leeds, England
    Posts
    13,881
    Put the date in the content div and use position:absolute; and left:-whateverpx; to pull it out of the way but in the right place. I have done something similar with the light grey notes in the margin on this page: Web Design+ — Tips and advice on web standards development

  8. #8
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,760

  9. #9
    CSS Wizardry Harry's Avatar
    Join Date
    May 2007
    Location
    Leeds, England
    Posts
    13,881
    Haha, are you implying I just gave myself a little plug there Carl?

    It does achieve the same thing though cos I had the same issues as Caroline is having now.

  10. #10
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,760
    Haha no, I'm just shamelessly pluggin you at every opportunity because I have nothing better to do.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Content Management Help
    By jayne193 in forum Graphic Design and Web Design Help
    Replies: 5
    Last Post: 02-06-2008, 05:40 AM
  2. How much stolen content?
    By Toon in forum Off Topic
    Replies: 14
    Last Post: 23-03-2008, 12:36 PM
  3. Using Other People's Content is OK!
    By Graphic Design Blog in forum Graphic Design Blog
    Replies: 0
    Last Post: 06-02-2008, 08:21 AM
  4. drop down content
    By Joe.Morgan in forum Programming Forum
    Replies: 5
    Last Post: 02-06-2007, 04:56 PM
  5. Site Content
    By El Peligroso in forum General Web Design Forum
    Replies: 5
    Last Post: 24-05-2007, 03:18 PM

Bookmarks

Posting Permissions

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


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site