CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/12/2008 10:10:57 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 12 Views: 85 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
13 Items, 1 Pages 1 |< << Go >> >|
james85
Asp.Net User
Cant remove formating on hyperlink text3/12/2008 10:10:57 AM

0/0

Hello, i've got a website that has a number of hyperlinks as part of components, such as within the headings of gridviews, in the SiteMapPath etc. All these hyperlinks appear with a line underneath them and in the sitemappath, the links go purple. how can i customise hypelinks so that they have no different formating to normal text? I guess its in the CSS, but i cant find the property? Or is there a way to do it directly to the components such as Sitemappath?

Thanks,

James.

vik20000in
Asp.Net User
Re: Cant remove formating on hyperlink text3/12/2008 10:41:28 AM

0/0

create a new css rule for all <a> tag to not to show Underline


Vikram
www.vikramlakhotia.com
justlikethat.vikramlakhotia

Please mark the answer if it helped you
james85
Asp.Net User
Re: Cant remove formating on hyperlink text3/12/2008 11:53:29 PM

0/0

How do i code that in my style sheet?

Thanks,

James.

Amanda Wang - M
Asp.Net User
Re: Cant remove formating on hyperlink text3/14/2008 5:25:57 AM

0/0

Hi,

You can try to custome the link in the style like below:

<style type="text/css">
        a
        {
            background-color: #808080;
        }
        a:active
        {
            background-color: #008000;
        }
        a:hover
        {
            background-color: #C0C0C0;
        }
        a:visited
        {
            background-color: #808000;
        }

 </style>

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
james85
Asp.Net User
Re: Cant remove formating on hyperlink text3/16/2008 12:38:09 AM

0/0

Hi,

I am a little unsure where i place the code. Do i place it in the style sheet, or in the ASP component in the ASP design code.

I got a lot of errors placing it in the style sheet.

Thanks,

James.

Amanda Wang - M
Asp.Net User
Re: Cant remove formating on hyperlink text3/17/2008 2:18:55 AM

0/0

Hi,

james85:
I got a lot of errors placing it in the style sheet.

What error did you get?

In fact, you can place the above code in the aspx file of the page, or you can also place it in the css file.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
james85
Asp.Net User
Re: Cant remove formating on hyperlink text3/17/2008 10:52:41 AM

0/0

If i put the following into my stylesheet.

.hyperlink

{

a

{

background-color: #808080;

}

a:active

{

background-color: #008000;

}

a:hover

{

background-color: #C0C0C0;

}

a:visited

{

background-color: #808000;

}

}

I get the following errors.

Error 1 Missing a colon (':') between the property and value in the "<property> : <value>" declaration. c:\inetpub\wwwroot\TMSv2\StyleSheet1.css 14 9 http://localhost/TMSv2/
Error 2 'a' is not a known CSS property name. c:\inetpub\wwwroot\TMSv2\StyleSheet1.css 13 6 http://localhost/TMSv2/
Error 4 The closing brace ('}') does not match an opening brace ('{'). c:\inetpub\wwwroot\TMSv2\StyleSheet1.css 29 1 http://localhost/TMSv2/

Thanks,

James.

Amanda Wang - M
Asp.Net User
Re: Cant remove formating on hyperlink text3/18/2008 2:38:19 AM

0/0

Hi,

You cannot do that like you post.

You can do like this:

You ca put the link in div,    

 <div id="div">
    <asp:HyperLink ID="HyperLink1" runat="server"  NavigateUrl="http://www.google.com">HyperLink</asp:HyperLink>
    </div>

then you can define the link's style of the div, like below:

#div a
{

background: yellow;
}

#div  a:link
{
color: green; 
}

#div  a:visited
{
color: blue;
background-color: Green;
}

#div  a:hover
{
color: orange;
background: olive;
border-color: #3c719e;
text-decoration: underline;
}

 #div a:active
{
background: red;
border-bottom: 1px solid white;
}

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
nps
Asp.Net User
Re: Cant remove formating on hyperlink text3/18/2008 10:15:38 AM

0/0

 hi,

Add a css file (rightclick the solution expore -> Add new item-> Stylesheet.css) 

Paste the below lines in that file

a

{

background-color: #808080;

text-decoration:none; 

}

a:active

{

background-color: #008000;

text-decoration:none;

}

a:hover

{

background-color: #C0C0C0;

text-decoration:none;

}

a:visited

{

background-color: #808000;

text-decoration:none; 

}

 

In your aspx page add the following tag in between the <head></head> tag.

<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
 

 


N.P.Senthil
Software Engineer
james85
Asp.Net User
Re: Cant remove formating on hyperlink text3/18/2008 11:12:44 AM

0/0

Hi, thanks nearly there. I have the applied the following style sheet.

a

{

color:Black;text-decoration: none;

 

}

a:active

{

color:Black;

text-decoration: none;

}

a:hover

{

color:Black;

text-decoration: none;

}

a:visited

{

color:Black;text-decoration: none;

}

Just one slight problem, i have a asp menu that i wish to have white text instead of black, but i cant find a way to 'exempt' it from having the black text in the style sheet. even if i try and set its foreground color to white in the properties for the menu, it is overriden by the style sheet color. How do i get round this so my ASP menu has white hyperlink text,

Thanks

James.

nps
Asp.Net User
Re: Cant remove formating on hyperlink text3/19/2008 2:50:27 AM

0/0

Hi,

Paste the below in your css file 

a.menu:active

{

color:White;

text-decoration: none;

}

a.menu:hover

{

color:White;

text-decoration: none;

}

a.menu:visited

{

color:White;

text-decoration: none;

}

And in your menu tag add CssClass="menu" (aspx page) 


N.P.Senthil
Software Engineer
james85
Asp.Net User
Re: Cant remove formating on hyperlink text3/19/2008 10:26:27 PM

0/0

Where would i change the cssclass tag, there seems to be a lot of them.

<div id="menu2" style="position: relative; left: -1px; top: -3px; text-align: left; width: 941px; z-index: 102;">

&nbsp;

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />

<asp:Menu ID="Menu1"

runat="server" Style="position: relative; left: 1px; top: -23px; text-align: left;" z-index=1; BackColor="Navy" ForeColor="White" MaximumDynamicDisplayLevels="5" Orientation="Horizontal" StaticDisplayLevels="2" Height="30px" Width="941px" DynamicPopOutImageTextFormatString="" Font-Bold="True" DataSourceID="SiteMapDataSource1" ItemWrap="True" BorderStyle="None" DynamicMenuItemStyle-CssClass="menunode2" StaticPopOutImageUrl="~/Pictures/down arrow.bmp" CssClass="menu">

<StaticMenuItemStyle CssClass="menunode" Font-Size="XX-Small" HorizontalPadding="0px" ItemSpacing="0px" VerticalPadding="0px" Width="150px" />

<DynamicMenuItemStyle CssClass="menunode2" BackColor="Navy" Width="150px" />

<DynamicHoverStyle BackColor="Blue" ForeColor="White" CssClass="menu" />

<StaticSelectedStyle Font-Size="Smaller" />

<StaticHoverStyle BackColor="Blue" />

</asp:Menu>

</div>

Thanks

James.

james85
Asp.Net User
Re: Cant remove formating on hyperlink text3/20/2008 8:40:23 PM

0/0

All sorted. Thanks for your help.Cool

13 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
How to Do Everything with Microsoft Office Access 2003 Authors: Virginia Andersen, Pages: 556, Published: 2003
Mac Annoyances: How to Fix the Most Annoying Things about Your Mac Authors: John Rizzo, Pages: 172, Published: 2004
How to Do Everything with Microsoft Office 2003 Authors: Laurie Ann Ulrich, Pages: 480, Published: 2003
Word Hacks: Tips & Tools for Taming Your Text Authors: Andrew Savikas, Pages: 372, Published: 2004
Access 2007 All-In-One Desk Reference for Dummies: All-in-one Desk Reference for Dummies Authors: Alan Simpson, Margaret Levine Young, Alison Barrows, April Wells, Jim McCarter, Pages: 768, Published: 2006
FrontPage 2003: The Missing Manual Authors: Jessica Mantaro, Pages: 411, Published: 2005
Office 2008 for Macintosh: The Missing Manual Authors: Jim Elferdink, Pages: 876, Published: 2008
The E-Business Formula for Success: How to Select the Right E-Business Model, Web Site Design, and Online Promotion Strategy for Your Business Authors: Susan Sweeney, Pages: 338, Published: 2001
google office: The Missing Manual Authors: Missing Editorial Team, Nancy Conner, Pages: 512, Published: 2008
Office 2004 for Macintosh: The Missing Manual Authors: Mark H. Walker, Franklin Tessler, Pages: 736, Published: 2005

Web:
cant remove Linux Mar 5, 2008 ... A Fdisk & rmov partitons, format & anything else but after a reboot the partitions ... How to remove Hyperlink on copied text from website? ...
eWorld: Why Can't Open Office Delete a Hyperlink? Removing the hyperlink is the specific case of removing some formating. One would have to stick "Remove text color", "Remove background color", "Remove font ...
OpenOffice.org Forum :: Remove hyperlink from Writer sxw text Hyperlink Tab lets you remove hyperlinks and keep the formatting. ... You cannot delete your posts in this forum You cannot vote in polls in ...
microsoft.public.powerpoint: RE: Cannot format hyperlink text RE: Cannot format hyperlink text. From: David M. Marcovitz ( marcoNOSPAM_at_loyola.edu) Date: 07/01/04. Next message: Kathy J: "Re: powerpoint 2003 viewer ...
Remove the underline from hyperlink text - PowerPoint - Microsoft ... Right-click the hyperlink text, and then click Remove Hyperlink. ... If you want to change the color or formatting of the text, select the text, ...
PP 2007 hyperlink text formatting Posted: Sat Jul 14, 2007 8:23 pm Post subject: Re: PP 2007 hyperlink text formatting [Login to view extended thread Info.] ...
How to remove Hyperlink on copied text from website? - The solution Aug 23, 2008 ... To remove the hyperlink from the text, you need to right on the ... and Values Example 3 Colour Tags Example 4 Text Formatting Example 5 ...
Outlook. Can I remove hyperlink if the mail format is RTF or ... There isn't this option to remove the hyperlink. ... There cannot be any such option in plain text format, because plain text is ... plain ...
How to Remove Hyperlink Formatting? I am trying to make some specifically formatted text into a hyperlink ... RE: How to Remove Hyperlink Formatting? - 6/24/2003 19:15:30 ...
TheMSsForum.com >> Excel >> how to hide hyperlink text - The ... MS Excel 2002 sp-2 -gb Tag: how to hide hyperlink text Tag: 41918 .... a form in excell and some bug just got int the equation wich i cannot remove (solve). ...




Search This Site:










get free hosting on iis7 with database on maximum asp

rendering design time html in a different location

hmc lab and "could not establish trust relationship with remote server" error

ui editor

a control's place/value in the framework

table to expand

creating usercontrol

how to debug when developing web custom control ?

oncomponentchanged does not fire for collection property

asp.net & soap with psoft's h-sphere

hi - opinions on this list of 3 hosts?

image resize problem with custom control

problems with user controls

inamingcontainer has change my controls event order.....

passing controls to controls

dynamic textbox control problem

do i have to compile my user control?

looking for a reliable asp.net host

built-in type editors

seting properties of dynamic controls

i am trying to render some html/gif during validatinsummary rendering?

web hosting for a non profit orgn

ping times problem

how to expose a property for a dynamically built control?

dynamic properties

string[] type property has error in my control!! why?

folder control

dynamic linkbutton event handling

button in user control not firing event

which host offers the most disk space? (i need a lot!)

  Privacy | Contact Us
All Times Are GMT