473,473 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

n00bie css problem.

8 New Member
I've made this simple HTML site implemented using frames but I fear that using frames has complicated applying the .css .

Here's the site:
click me
I had serious trouble making the .css filter through tables although I eventually found the fix to that problem. Some of the code in my .css is uneccessary so it may look a little messy. Feel free to suggest what I can delete while maintaining functionality.

My current problem is that I have links in the main frame and the menu frame but I want the links in the main frame to be a colour other than black ie orange because they're tricky to see against the dark blue background atm.

Here's the site zipped up:
click me
Mar 16 '07 #1
5 1204
drhowarddrfine
7,435 Recognized Expert Expert
The anchors are what have to be styled so in the main page you need:

a:link{
color:white;
}
then you can also add:
a:visited{
color: pink;
}
and so on.
Mar 16 '07 #2
rickjamesb
8 New Member
The anchors are what have to be styled so in the main page you need:

a:link{
color:white;
}
then you can also add:
a:visited{
color: pink;
}
and so on.
I think I've already done what you've suggested. If you haven't looked at my .css here's the contents:

h1
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 24px;
text-align: center;
}

h2
{
font-family: Verdana;
color: white;
font-size: 18px;
text-align: center;
}

h3
{
font-family: Verdana;
color: white;
font-size: 14px;
}

/*attempted to develop a different style for e-mail addresses*/

body.e-mail
{
font-family: Verdana;
color: green;
text-decoration: none;
font-size: 13px;
}

/* required?

table.centertable td
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 13px;
text-align: center;

}

table.lefttable td
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 13px;
text-align: left;

}

a.leftmenu
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 13px;
}
*/

a:hover
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:visited
{
font-family: Verdana;
color: gray;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:link
{
font-family: Verdana;
color: orange;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:active
{
font-family: Verdana;
color: blue;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

/* Below is my attempt to define default values for tables etc. This was my solution to tables not behaving like the .css instructed. Im not entirely sure why it works though :S */


body, th, p, ol, ul, blockquote, table

{
font-size: 13px;
color: white;
font-family: Verdana;
background: #132F62;
}

table.navigation

{
font-size: 13px;
color: pink;
font-family: Verdana;
background: #759BD3;
}
Mar 16 '07 #3
drhowarddrfine
7,435 Recognized Expert Expert
Yes, I did not notice them. The problem is they are getting redefined later in the flow. So you have to move them to the bottom of your css. Then it will work.
Mar 16 '07 #4
rickjamesb
8 New Member
Yes, I did not notice them. The problem is they are getting redefined later in the flow. So you have to move them to the bottom of your css. Then it will work.
I shall have a play Monday and let you know how I get on. Thanks
Mar 16 '07 #5
rickjamesb
8 New Member
Yes, I did not notice them. The problem is they are getting redefined later in the flow. So you have to move them to the bottom of your css. Then it will work.
It didn't work for me. Perhaps I misunderstood your reply. I've posted the modified css below. I still can't change the link colours independently.

h1
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 24px;
text-align: center;
}

h2
{
font-family: Verdana;
color: white;
font-size: 18px;
text-align: center;
}

h3
{
font-family: Verdana;
color: white;
font-size: 14px;
}


/* !!!IMPORTANT!!! Default attributes for text defined below (note to self: THESE DEFAULT? ie they arent) */


body, th, p, ol, ul, blockquote, table

{
font-size: 13px;
color: white;
font-family: Verdana;
background: #132F62;
}

table.navigation

{
font-size: 13px;
color: pink;
font-family: Verdana;
background: #759BD3;
}

a:link
{
font-family: Verdana;
color: black;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:hover
{
font-family: Verdana;
color: white;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:visited
{
font-family: Verdana;
color: gray;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:link
{
font-family: Verdana;
color: orange;
text-decoration: none;
font-size: 13px;
font-weight: bold
}

a:active
{
font-family: Verdana;
color: blue;
text-decoration: none;
font-size: 13px;
font-weight: bold
}
Mar 29 '07 #6

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
3
by: bsagert | last post by:
I downloaded BeautifulSoup.py from http://www.crummy.com/software/BeautifulSoup/ and being a n00bie, I just placed it in my Windows c:\python25\lib\ file. When I type "import beautifulsoup" from...
3
by: bsagert | last post by:
This simple script writes html color codes that can be viewed in a browser. I used short form hex codes (fff or 000, etc) and my list has only six hex numbers otherwise the results get rather...
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,...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.