473,830 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting Link without Underline

28 New Member
hi

i given a link in jsp
how to use links for with out under line in Mozill Firefox
Jun 20 '07 #1
6 1585
r035198x
13,262 MVP
hi

i given a link in jsp
how to use links for with out under line in Mozill Firefox
This is more suitably placed in the Javascript forum.
Jun 20 '07 #2
shoonya
161 New Member
use a class for the links

Expand|Select|Wrap|Line Numbers
  1. a.menu:link    { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
  2.  
  3. a.menu:visited { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
  4.  
  5. a.menu:hover   { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #2D64A8;border-bottom:1px solid #2D64A8;border-top:1px solid #2D64A8;}
it creates a class name "menu"

now simply write

Expand|Select|Wrap|Line Numbers
  1. <a class=menu href=#>click here..</a>
  2.  
i gues this is what you asked for

shoonya
Jun 20 '07 #3
shyamg
28 New Member
use a class for the links

Expand|Select|Wrap|Line Numbers
  1. a.menu:link    { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
  2.  
  3. a.menu:visited { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #696969;}
  4.  
  5. a.menu:hover   { font-family: Arial, Verdana, Tahoma; font-size: 12px; font-weight: normal; text-decoration:none; color: #2D64A8;border-bottom:1px solid #2D64A8;border-top:1px solid #2D64A8;}
it creates a class name "menu"

now simply write

Expand|Select|Wrap|Line Numbers
  1. <a class=menu href=#>click here..</a>
  2.  
i gues this is what you asked for

shoonya


hi

without write a css class is it posible to get href link underline.
Jun 20 '07 #4
shoonya
161 New Member
i guess no or rather i don't know such thing :(

i tried this

Expand|Select|Wrap|Line Numbers
  1. style="border-bottom:0px"
but it doesn't works

shoonya
Jun 20 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
hi

without write a css class is it posible to get href link underline.
Yes, of course, just move the "text-decoration: none" inline:
Expand|Select|Wrap|Line Numbers
  1. style="text-decoration: none;"
or using javascript:
Expand|Select|Wrap|Line Numbers
  1. obj.style.textDecoration='none';
See link.
Jun 20 '07 #6
shoonya
161 New Member
thnx acoder :D

shoonya
Jun 20 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
3407
by: LRW | last post by:
Below I'll paste my CSS and the HTML in question. But what's happening is, I'm trying to establish a link behavior for a class that's separate from the normal link class. I've established a: 's with no underline and then an underline for hover...but oddly, only ONE link will actually show the underline on hover. All the rest, even with the same HTML, won't pop up an underline. I just don't get it! If I could get any advice I'd really...
2
9188
by: Kevin Lyons | last post by:
Hello, Can anyone assist me with what I am trying to do with the following code (six different scenarios to try to make the functionality work correctly)? I want to always (and ONLY) display in the status bar 'Symantec Corporation' whenever anyone mouses over (onMouseOver) my image or link OR when one clicks while holding the left mouse down (onClick) on the same image or link. Upon releasing the mouse (onMouseOut), the
29
49071
by: jmaxsherkimer | last post by:
the site we're working on has some anchor links, you click them they scroll to the bottom of the page with the answers to the questions linked on to. is there anyway to make it so that the links are not underlined when the page loads, when the user moves the mouse over it's underlined, mouse out no underline. i tried: <a href="#section14" class="drkblue08bold" style="text-decoration:none"> but that left the underline gone forever,...
18
10290
by: Denny Schierz | last post by:
hi, i want to change my link colors in the p class="suchen": That is my html: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//DE" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
6
3779
by: JimO | last post by:
Is there any way to reset a link's state. In other words reset a visited link to an unvisited link. I guess the question I'm asking would be how do you programatically search and clear the history of a particular page?
9
4172
by: Richard | last post by:
Please hlep with a very frustrating problem. I need to be able to have a reference to my "btcopyrights" CSS class override the link colors first specified earlier in the CSS. I inherited a large site with a CSS containing as its first lines: A:link { COLOR: #006633; BACKGROUND-COLOR: transparent;
3
3829
by: shapper | last post by:
Hello, How to make the underline of a link to be a dotted line like in this web site: http://www.iconbuffet.com/ Thanks, Miguel
4
8529
by: Mr. Newt | last post by:
Hi y'all, I'm looking to put an underline under some links but not under others. I still want an underline when the link is hovered over. I've dabbled with classes for this, but all I can get is line or no line. Any help? Thanks.
14
2028
by: Daniel Kaplan | last post by:
So my style sheet has many different types of LINK styles. And they all work fine on IE, even different styles on the same page. But in Firefox, all link throughout my site all follow JUST the first link class on any page. Any thoughts? As a side thought, in my style sheet I changed what I guess was the "Default" link style (as seen below). Was I wrong in doing that?
10
3156
by: JD | last post by:
I've seen websites where the link underline is a different colour to the link text. I've also seen links with dotted underlines (see the hover effect on the 'Change' and 'All Microsoft Sites' links at the top right of this page for an example: http://support.microsoft.com/kb/253503). Do these techniques involve background image/border hacks or can it be done by directly styling the underline using CSS? Thanks
0
9793
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10774
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10489
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7746
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6950
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5617
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.