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 107065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:41:43+00:00 2026-05-11T01:41:43+00:00

I’m designing this forum layout where I come up with a nice design to

  • 0

I’m designing this forum layout where I come up with a nice design to draw the forum tables, however, I’m not sure that this can be easily done in HTML/CSS.

Before I continue to draw the whole layout, I need to know if this is achievable and how, otherwise, I’ll have to ditch this effect and rethink things…

For instance, the design I currently have is this one:

Sample Table

The rows on this example have all the same height but this is just an example. The real table will actually have different row heights and the code needs to take that into account…

How can this be done?

  • 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. 2026-05-11T01:41:44+00:00Added an answer on May 11, 2026 at 1:41 am

    CSS can do something like that very easily, provided you don’t have to scale the gradient vertically as the table size increases. Below is an example you could use that would give you the effect you depicted above.

    UPDATE: I somehow didn’t see the bevels (I guess I have to blame it being too late at night and my vision being too blurry). I had to zoom in to really see them, but I’ve updated my solution to fit. You need to add an extra ‘div’ tag to make this solution work, but it is possible, although I don’t think it works too the extent that your image shows. It will work fairly decently though. Down below I include some jQuery script that will remove the need for an extra <div /> tag.

    For markup, you’d use something like this:

    <table cellspacing='0'>     <tr><td class='side'><div class='bevel'>lorem</div></td><td class='side'><div class='bevel'>ipsum</div></td><td class='main'><div class='bevel'>dolor sit amet, consectetur</div></td></tr>     <tr><td class='side'><div class='bevel'>lorem</div></td><td class='side'><div class='bevel'>ipsum</div></td><td class='main'><div class='bevel'>dolor sit amet, consectetur</div></td></tr>     <tr><td class='side'><div class='bevel'>lorem</div></td><td class='side'><div class='bevel'>ipsum</div></td><td class='main'><div class='bevel'>dolor sit amet, consectetur</div></td></tr> </table> 

    And in your stylesheet you’d use something like this:

    td {     border: 1px solid #777; }  .bevel {     background: url('img.png') top left repeat-x;     margin: -1px;     border-top: 1px solid #fbfbfb;     border-left: 1px solid #fbfbfb;     border-right: 1px solid #bfbfbf;     border-bottom: 1px solid #e8e8e8; }  .side {     width: 30px; }  .main {     width: 170px; }  table {     border-collapse: collapse;     border-spacing: 0; } 

    For the image, make it 1px wide. It will repeat itself to fit the width of the cell. If you want the gradient to stretch vertically, you’re out of luck. CSS can not scale images, only repeat them. In order to make a vertically scaled background image, you’d need to either have nightmarish markup, or some sort of JavaScript to make it work.

    To get rid of the <div /> tag soup, you can use jQuery to insert the tags so you don’t clutter up your source. All you need to do is add an ‘outerBevel‘ class to the <td /> tags instead, then call this jQuery script (if you’re using jQuery. I’m sure other JavaScript APIs can do similar things):

    $('.outerBevel').wrapInner('<div class='bevel'></div>'); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Does anyone know how can I replace this 2 symbol below from the string
I need a function that will clean a strings' special characters. I do NOT
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

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.