please help,iwant my links to appear without lines below them in dreamweaver,what should i do?:)

Dani AI

Generated

For a quick, reliable fix use CSS rather than relying on the Design view. was right to point to CSS; is also correct that Dreamweaver's Design view can show underlines even when the browser will not — always check in Live View or a real browser. The CSS below removes the underline but keeps hover/focus feedback and a visible focus outline for keyboard users.

/* remove underlines but keep hover and focus indicators */
a, a:visited {
  text-decoration: none;
  color: #0a66c2;
}

a:hover, a:focus {
  text-decoration: underline;
}

a:focus {
  outline: 3px solid #ff9800;
  outline-offset: 2px;
}

Workflow/troubleshooting in Dreamweaver: put that rule in the stylesheet linked from your page (external or in the head). Use the CSS Designer or create a new rule for the a tag and its pseudo-classes (link, visited, hover, active, focus). If underlines still show, check for a more specific rule or inline styles that override your CSS; increase selector specificity or use !important only as a last resort. If the link wraps an image and a border appears (older browsers), remove it with img { border: 0; }. Clear the browser cache before re-testing.

Accessibility note: is right that link affordance matters — removing underlines can make links harder to find. If you remove underlines, make sure color contrast is strong and that hover/focus states are obvious. See MDN on text-decoration for details (MDN text-decoration) and WCAG guidance on using color (WCAG 1.4.1 Use of Color).

Recommended Answers

All 3 Replies

please help,iwant my links to appear without lines below them in dreamweaver,what should i do?:)

hi,
define one css class for the link with decoration property as none...

Hi, i think that wen you add links on dreamweaver i think the lines only appear when you are designing the web site, i ent to sure tho i think thats what happens because i am doing web sign at college using dreamweaver an the link lines don't appear when i have a look at my web site. Hope that is helpful, sorry if it ent :D

Why does everyone want to change the look of a link? It should be standard.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.