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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:16:26+00:00 2026-05-31T00:16:26+00:00

I have a table in my application (generated dynamically) that has 3 columns. The

  • 0

I have a table in my application (generated dynamically) that has 3 columns. The cells where the text is a too long, it wraps around which is fine except the rounded borders now look bad.

enter image description here

Currently, my table is wrapped in a DIV with an id set as item-list and the CSS is as follows:

#item-list {
   text-align: center;
}


#item-list table {
margin: auto auto; 
}

#item-list td {
padding: 10px;
text-align: center;
}

#item-list a {
font-size: 0.8em;
color: #FFF;
margin: 10px;
border-radius: 8px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
padding: 4px;
padding-left: 10px;
padding-right: 10px;
background-color: #1a546a;
text-decoration: none;
font-weight: bold;
}

#item-list a:hover {
background-color: #8f2525;
}

My question is, is there a way using CSS to make the wrapped text still be rounded on all edges?

[Disclaimer] My expertise is in PHP. CSS is a skill where I know enough to usually accomplish what I need to do, but not much beyond amateurish.

  • 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-31T00:16:27+00:00Added an answer on May 31, 2026 at 12:16 am

    Add display: block; to your #item-list a.

    #item-list a {
      font-size: 0.8em;
      color: #FFF;
      display: block;
      margin: 10px;
      border-radius: 8px;
      -moz-border-radius: 8px;
      -webkit-border-radius: 8px;
      padding: 4px;
      padding-left: 10px;
      padding-right: 10px;
      background-color: #1a546a;
      text-decoration: none;
      font-weight: bold;
    }
    

    I’ve set up a quick example for you – http://jsfiddle.net/spacebeers/g5YcT/

    Display Block

    The element is displayed as a block element (like paragraphs and
    headers). A block element has some whitespace above and below it and
    does not tolerate any HTML elements next to it

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

Sidebar

Related Questions

I have a table which holds ~1M rows. My application has a list of
I have a simple ASPX page that renders a dynamically generated HTML table to
In an embedded application, we have a table describing the various address ranges that
I have an Oracle table which contains event log messages for an application. We
I have created a table in my Ruby on Rails application that I am
I have generated a html table from my web application and save the table
I have following markup which is generated dynamically using C# in my asp.net MVC2
I have a charting application that dynamically generates SQL Server queries to compute values
Using the Entity Framework that I generated. I have a Roles table created during
I have a transaction table which has start_date and end_date of datetime datatype. I

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.