Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7162521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:44:57+00:00 2026-05-28T13:44:57+00:00

I am trying to float a picture left in the snippet below (a table

  • 0

I am trying to float a picture left in the snippet below (a table cell). There is no CSS applied other than that shown below – I have tried everything I can think of, to no avail. I am displaying the page in FF.

    <tr>
    <td>
        <div>
            <div style="width:60%; float left;">
                <div>
                    <div><h4 style="margin:0px 0px;">Hello</h4> <strong>World!</strong></div>
                    <div>Line 1</div>
                    <div>Line 2</div>
                    <div>Line 3</div>
                </div>
                <div>
                    <div>Line 4</div>
                    <div>Line 5</div>
                </div>
                <!-- no effect, so commented out 
                <div style="clear:both; height: 1px;"></div> -->
            </div>
            <!-- I want this next div floated right as instructed in the CSS - but it has no effect! :/ -->                    
            <div style="width:35%; float right;">
                <a href="<?php echo $row['page_link']; ?>"><img src="<?php echo $row['photo_link']; ?>" /></a>
            </div>
            <!-- no effect, so commented out 
            <div style="clear:both; height: 1px;"></div> -->
        </div>
    </td>
    </tr>

What am I doing wrong?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:44:57+00:00Added an answer on May 28, 2026 at 1:44 pm
        <div style="width:35%; float right;">
                                    ^-- missing :
    

    Without the :, you’ve just got a CSS syntax error and the style rule is ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to arrange images like the picture below? I'm already try float left,
I'm trying to float a large left curly quote so that the blockquote sits
I have an annoying CSS layout problem. I'm trying to float images on a
I'm trying to place a picture on left , and explanation paragraph on the
I am trying to get a picture to be on the left side of
I'm trying to use: float divAm = (float)theAngle%(float)rads; but its saying that Invalid operands
I'm trying to convert std::string to float/double . I tried: std::string num = 0.6;
I am trying to do what float do, but not selectable for copy. This
I am trying to find some float number (like -1234.5678) in a huge text
I'm trying to get the values from a pointer to a float array, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.