HI
How can I make a menu like this picture ? I have tries some thing but I don’t know how to make the corners like it ? can any one give me a example like this ?
thanks
HI
How can I make a menu like this picture ? I have tries some thing but I don’t know how to make the corners like it ? can any one give me a example like this ?
thanks
A few quick notes that build on the replies already here: and pointed at image-based approaches, and correctly warned against relying on tables. For a clean, future‑proof solution use semantic markup plus CSS3 for the rounded corners and shadows; it keeps the menu responsive, accessible, and easy to style.
Try this minimal structure (role added for accessibility):
<nav class="menu" role="navigation" aria-label="Main menu">
<ul>
<li><a href="#">Item One</a></li>
<li><a href="#">Item Two</a></li>
<li><a href="#">Item Three</a></li>
</ul>
</nav> And the CSS that produces rounded corners, clipping, and hover/focus states:
.menu {
width:240px;
background:#fafafa;
border:1px solid #ddd;
border-radius:8px;
box-shadow:0 2px 4px rgba(0,0,0,0.08);
overflow:hidden;
font:14px/1.2 Arial, sans-serif;
}
.menu ul { list-style:none; margin:0; padding:0; }
.menu a { display:block; padding:12px 16px; color:#333; text-decoration:none; }
.menu a:hover,
.menu a:focus { background:#f2f2f2; outline:none; } Notes and troubleshooting:
border-radius is widely supported now; see border-radius on MDN for details. No vendor prefixes are needed for modern browsers.overflow:hidden on the container clips child backgrounds so the corners look correct without per-item rounding.::before/::after pseudo-elements — only resort to image-slicing if you must support very old browsers.This keeps markup semantic, avoids tables, and gives you easy control over colors, spacing and corner radius.
Jump to Post— SKANK!!!!! 5u will need to make a table with background images to make the rounded corner and border. than u will need to have the text in a tr and td and the text needs to have a width and border-bottom: 1px dashed gray
u will need to make a table with background images to make the rounded corner and border. than u will need to have the text in a tr and td and the text needs to have a width and border-bottom: 1px dashed gray
Thank
Don't use tables unless you really, really want to.
i would make a div.... with the main color as a background color then make a image of the top of the boarder and a image of the bottom boarder..... then for the sides make a 1pt by 4pt image and stretch it to fit the side hight you want..... content in the middle.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.