Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    5
    Member #
    19003
    Hi, I'm having this issue with my current image for a feed.
    Attachment 3118
    I'm trying to move the feed image up and to the right side of the title.

    This is my current source code.
    Code:
    <div><h2>Latest News</h2><img src="images/feed.jpg" class="feed" /></div>
    What should I do to my class "feed" that will put that image back up and along side Latest News.

    Thank You

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,656
    Member #
    1234
    Liked
    137 times
    I think we'll need a bit more code from your page to see how that div sits in relation to the other divs.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Junior Member
    Join Date
    May 2009
    Posts
    5
    Member #
    19003
    How is this-
    Code:
    <div class="center_column">
          <div class="box_right">
            <h3>Contact</h3>
            <p>You can contact us at <a href="mailto:*hidden*">*hidden*</a>. We would love to communicate with hopeful future players of Drackarre.</p>
            </div>
            <div><h2>Latest News</h2><img src="images/feed.jpg" class="feed" /></div>
          <?php while (have_posts()): the_post(); ?>
    <h1><?php the_title(); ?></h1>
    <?php the_date('F j, Y', '<h4>', '</h4>'); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
        </div>
      </div>
    Here is style sheet Attachment 3119

  5. #4
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    That h2 tag is going to automatically put that image below. You could close the h2 tag after the image.

  6. #5
    Junior Member
    Join Date
    May 2009
    Posts
    12
    Member #
    19064
    You can't just stick it in a table with two cells?
    -

  7. #6
    Senior Member
    Join Date
    Dec 2008
    Posts
    483
    Member #
    17875
    Liked
    1 times
    table with 2 cells? hes using css for layout not tables.
    tables = bad for layout, css = good

    your stylesheet is HORRIBLE, i cant even read it and im not gna sit here and go through it (turns out this was a browser issue, was ok wen i downloaded)

    Anyways I would say
    <h2>News Feed<img src="feed.jpg"></h2>
    OR
    <h2 class="left">News Feed</h2><img src="feed.jpg"/>
    .left{float: left;}
    OR
    <h2 id="newsFeed">News Feed</h2><img src="feed.jpg" class="feed"/>

    #newsFeed{float: left; width: 50px;}
    .feed{margin-left: 50px;}

    One of those 3 should work

  8. #7
    Senior Member
    Join Date
    Dec 2008
    Posts
    483
    Member #
    17875
    Liked
    1 times
    #1 works
    #2 breaks the layout
    #3 breaks layout

    and #4
    <h2 class="inL">Latest News</h2><img src="feed.jpg"/>

    .inL{display: inline;}

    Works as well.

    so #1 or #4 pick your poison


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:50 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com