473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unsightly CSS-display borders

Hello,

I'm building a menu for a page, like this (snippet):

<td align="center">
<a href="#" style="display:block">Contact</a>
</td>

As a result, I get nice clickable tabs. However, there's the
not-so-nice problem of unsightly borders shown here:
http://i17.photobucket.com/albums/b5...d/not_nice.jpg

When however, I click elsewhere, I lose the ugly highlight as shown
here:
http://i17.photobucket.com/albums/b5...ohead/nice.jpg

Is there anything I can do about this? Is there a way to lose focus or
something like that.

Thanks,

- Olumide

May 10 '06 #1
3 1669
In comp.infosystems.www.authoring.stylesheets 50***@web.de wrote:

| I'm building a menu for a page, like this (snippet):
|
| <td align="center">
| <a href="#" style="display:block">Contact</a>
| </td>
|
| As a result, I get nice clickable tabs. However, there's the
| not-so-nice problem of unsightly borders shown here:
| http://i17.photobucket.com/albums/b5...d/not_nice.jpg
|
| When however, I click elsewhere, I lose the ugly highlight as shown
| here:
| http://i17.photobucket.com/albums/b5...ohead/nice.jpg
|
| Is there anything I can do about this? Is there a way to lose focus or
| something like that.

Could you provide a URL to a complete page that minimally shows what
you are doing, along with the CSS you are using? I'd particularly
want to see the CSS as that is where the borders are likely to be
specified.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 10 '06 #2
To further the education of mankind, 50***@web.de vouchsafed:
Hello,

I'm building a menu for a page, like this (snippet):

<td align="center">
<a href="#" style="display:block">Contact</a>
</td>

As a result, I get nice clickable tabs. However, there's the
not-so-nice problem of unsightly borders shown here:
http://i17.photobucket.com/albums/b5...d/not_nice.jpg

When however, I click elsewhere, I lose the ugly highlight as shown
here:
http://i17.photobucket.com/albums/b5...ohead/nice.jpg

Is there anything I can do about this? Is there a way to lose focus or
something like that.


Yes. Javascript can be used to remove the focus from the link after
clicking.

<a href="#" onMouseUp="this.blur()" style="display:block">Contact</a>

--
Neredbojias
Infinity has its limits.
May 10 '06 #3
50***@web.de wrote:
As a result, I get nice clickable tabs. However, there's the
not-so-nice problem of unsightly borders shown here:
http://i17.photobucket.com/albums/b5...d/not_nice.jpg


This is a hint to users where the focus is. Keyboard user like or even
need it. If _you_ don't like it change your user style sheet.

f'up2 c.i.w.a.s.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
May 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: andy johnson | last post by:
Hi All, I called an external stylesheet main.css, created the html files and checked them locally OK. I uploaded everything to the server. When I checked it, the connection kept crashing. I...
59
by: Mason A. Clark | last post by:
Is there information content in this observation? use html tables for layout: http://www.microsoft.com and http://www.netscape.com uses styles: http://www.opera.com
1
by: Jocab | last post by:
Just had a look at the Wired.com site and it seems it's completely in XHTML and CSS. I don't understand this snippet of code on their homepage, though: <link rel="stylesheet" type="text/css"...
145
by: Mark Johnson | last post by:
Oddly enough, I found it difficult, using Google, to find a list of best-of sites based on the quality of their css packages. So I'd ask. Does anyone know of particularly good sites which are in...
36
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
4
by: g | last post by:
I'd like to have a CSS file for everything that's common to my site, and other CSS files that are specific to certain pages or groups of pages. When a page loads, it would load in BOTH the General...
7
by: Nilesh | last post by:
I am using background-image attribute in a CSS file and linking the CSS file to aspx page. But strangly, background-image attribute is not working for relative URL. e.g. If I apply following css...
3
by: nick | last post by:
I have the following code in my master page: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
1
by: matz2k | last post by:
I've got a big problem with the CSS layout which I've produced with Photoshop/Dreamweaver especially for my ebay auctions. This is what it looks like...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.