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

  • Home
  • SEARCH
  • 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 3351772
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:56:56+00:00 2026-05-18T01:56:56+00:00

I am implementing search page in php. I need to show the results like

  • 0

I am implementing search page in php.
I need to show the results like the following image

sample

how can i achieve this kind of designing using css. I want it a fluid design using percentages with an addition i.e alternate row color changed.

Also let me know how can i limit a column to have not more than say 50 words. full detail will be available through a hyperlink on each row.

  • 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-18T01:56:57+00:00Added an answer on May 18, 2026 at 1:56 am

    That’s a perfect situation to use a table.

    Don’t just assume that “tableless design is better than design with tables”, tables are meant to be used with tabular data and your design clearly fits.

    About even/odd row coloring, if you target the modern browsers, use the following rule:

    table tr:nth-child(even) { background-color: #c0ffee; }
    table tr:nth-child(odd) { background-color: #123456; }
    

    If you target also the older browsers, you can use javascript for that, JQuery comes in handy:

    $('table tr:even').css('background-color: #123456');
    

    Or add the classes manually in your server-side code.

    About the limitation of number of characters/words in the row, that’s usually done on server side. If you use a template engine like Smarty, then you’re likely to have a function for that, but that’s no big thing to roll up by yourself too.

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

Sidebar

Related Questions

I am looking for a means of implementing a Search routine/page that I can
I have a search page that I'm implementing as part of an ASP.NET +
This is basically implementing search/find in a WPF window or User control. Let's say
I am implementing a search module with result page support paging. The example provided
I am implementing a complex search module with result page support paging. Most of
I am implementing paging of a product detail page. The way this works is
I am implementing Advanced Search kind of functionality for an Entity in my system
I'm using lazy loading images based on this question . I'm implementing a search
I'm implementing the A* search algorithm from this pseudo on wikipedia's article: function A*(start,goal)
Can any one get me idea in implementing the spotlight search inside application for

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.