473,545 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS trouble - div.class div.class2

I am trying to use an external style sheet to create a round cornered
box. I am have difficulties correctly referencing my class in my
style sheet. I am posting an excerpt from my style sheet:

<code>div.prodl inks {font-family:Aria; float:right;
vertical-align:top; font-size:10px; background-color:#efbc24; }
div.prodlinks h1 {font-weight:bold; text-decoration:none ;
font-size:12px;font-family:Arial;ma rgin: 0 10px;
margin-bottom:0.5em;co lor:#993300}
div.prodlinks ul { list-style-type:none; font-family:Aria; margin: 0
10px; padding: 0;}
div.prodlinks ul li {text-indent:0.2em; text-align:left;marg in:
0.1em; padding: 0;font-size:12px; line-height:120%;}
div.prodlinks ul a {text-decoration:none ; color:#000000; }
div.prodlinks ul a:link { color:#000000}
div.prodlinks ul a:visited { color:#000000}
div.prodlinks ul a:hover {color:#993366}

div.wtloss {float:right; vertical-align:top; margin:0.8em;
border-spacing:1em; border-width:1em;}

.roundcont {
width: 250px;
background-color: background-color:#efbc24;
color: #fff;
}
..roundtop {
background: url(images/tr.gif) no-repeat top right ! important;
border-width:thick; border-color:Green;
}
..roundbottom {
background: url(images/br.gif) no-repeat top right ! important;
}

img.corner {
width: 15px;
height: 15px;
border: none;
display: block !important;
}
</code>
the img.corner and all of the div.prodlinks styles are correctly
rendered.

excerpt from html:

<code>
<div class="prodlink s">
<div class="roundtop "><img src="images/tl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"> </div>
<h1>More on Aller-7®</h1> <ul>
<li><a href="../FAQs/Aller_7_faqs.as px">Aller-7® FAQs </a></li>
<li><a href="../research/research.aspx#A ller_7">Aller-7®
Research</a></li>
<li><a href="../news/news.aspx#Aller _7">Aller-7® News</a></li>
<li><a href="../comments/successstory1.a spx">Success Stories</a></li>
</ul>
<div class"roundbott om"><img src="images/bl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"></div>
</div>
</code>

I can not figure out how to write my CSS to correctly apply style to
the internal div elements with the "roundtop" and "roundbotto m"
classes.

I look forward to you assistance.
Jul 23 '05 #1
4 4547
Fred Zilz wrote:
I am trying to use an external style sheet to create a round cornered
box. I am have difficulties correctly referencing my class in my
style sheet. I am posting an excerpt from my style sheet: I look forward to you assistance.


Then post a live URL. We don't like trawling through code we can't see
rendered.

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #2
Sorry, I didn't feel like going through all that html and css, but
here is a simple little rounded corner box for you. You should notice
that the div with class "topright" has a green background (#0f0), each
of the images (topright.png, etc) should be a rounded corner of the
same color of the container div, or "topright". .. it should be self
explanatory.... hope it helps someone

<html>
<head>
<style type="text/css">
..topright {background:url ('topright.png' ) no-repeat top right
#0f0;width:50%; }
..botright {background:url ('botright.png' ) no-repeat bottom right
transparent;}
..botleft {background:url ('botleft.png') no-repeat bottom left
transparent;}
..topleft {background:url ('topleft.png') no-repeat top left
transparent;}
..content {padding:10px;t ext-align:center;}
..content, .botright, .botleft, .topleft {width:100%; height:100%;}
</style>
</head>
<body>
<div class="topright "><div class="botright "><div class="botleft" ><div
class="topleft" >
<div class="content" >
Hello World
</div>
</div></div></div></div>
</body>
</html>

Seth Flowers - http://www.charlottewebdev.com

fz***@interheal thusa.com (Fred Zilz) wrote in message news:<57******* *************** ****@posting.go ogle.com>...
I am trying to use an external style sheet to create a round cornered
box. I am have difficulties correctly referencing my class in my
style sheet. I am posting an excerpt from my style sheet:

<code>div.prodl inks {font-family:Aria; float:right;
vertical-align:top; font-size:10px; background-color:#efbc24; }
div.prodlinks h1 {font-weight:bold; text-decoration:none ;
font-size:12px;font-family:Arial;ma rgin: 0 10px;
margin-bottom:0.5em;co lor:#993300}
div.prodlinks ul { list-style-type:none; font-family:Aria; margin: 0
10px; padding: 0;}
div.prodlinks ul li {text-indent:0.2em; text-align:left;marg in:
0.1em; padding: 0;font-size:12px; line-height:120%;}
div.prodlinks ul a {text-decoration:none ; color:#000000; }
div.prodlinks ul a:link { color:#000000}
div.prodlinks ul a:visited { color:#000000}
div.prodlinks ul a:hover {color:#993366}

div.wtloss {float:right; vertical-align:top; margin:0.8em;
border-spacing:1em; border-width:1em;}

.roundcont {
width: 250px;
background-color: background-color:#efbc24;
color: #fff;
}
.roundtop {
background: url(images/tr.gif) no-repeat top right ! important;
border-width:thick; border-color:Green;
}
.roundbottom {
background: url(images/br.gif) no-repeat top right ! important;
}

img.corner {
width: 15px;
height: 15px;
border: none;
display: block !important;
}
</code>
the img.corner and all of the div.prodlinks styles are correctly
rendered.

excerpt from html:

<code>
<div class="prodlink s">
<div class="roundtop "><img src="images/tl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"> </div>
<h1>More on Aller-7®</h1> <ul>
<li><a href="../FAQs/Aller_7_faqs.as px">Aller-7® FAQs </a></li>
<li><a href="../research/research.aspx#A ller_7">Aller-7®
Research</a></li>
<li><a href="../news/news.aspx#Aller _7">Aller-7® News</a></li>
<li><a href="../comments/successstory1.a spx">Success Stories</a></li>
</ul>
<div class"roundbott om"><img src="images/bl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"></div>
</div>
</code>

I can not figure out how to write my CSS to correctly apply style to
the internal div elements with the "roundtop" and "roundbotto m"
classes.

I look forward to you assistance.

Jul 23 '05 #3
here is a very simple example of rounded corners using CSS:

http://www.guyfisher.com/builder/workshop/css/corners/

hope this works.. good luck.. Frances
Fred Zilz wrote:
I am trying to use an external style sheet to create a round cornered
box. I am have difficulties correctly referencing my class in my
style sheet. I am posting an excerpt from my style sheet:

<code>div.prodl inks {font-family:Aria; float:right;
vertical-align:top; font-size:10px; background-color:#efbc24; }
div.prodlinks h1 {font-weight:bold; text-decoration:none ;
font-size:12px;font-family:Arial;ma rgin: 0 10px;
margin-bottom:0.5em;co lor:#993300}
div.prodlinks ul { list-style-type:none; font-family:Aria; margin: 0
10px; padding: 0;}
div.prodlinks ul li {text-indent:0.2em; text-align:left;marg in:
0.1em; padding: 0;font-size:12px; line-height:120%;}
div.prodlinks ul a {text-decoration:none ; color:#000000; }
div.prodlinks ul a:link { color:#000000}
div.prodlinks ul a:visited { color:#000000}
div.prodlinks ul a:hover {color:#993366}

div.wtloss {float:right; vertical-align:top; margin:0.8em;
border-spacing:1em; border-width:1em;}

.roundcont {
width: 250px;
background-color: background-color:#efbc24;
color: #fff;
}
.roundtop {
background: url(images/tr.gif) no-repeat top right ! important;
border-width:thick; border-color:Green;
}
.roundbottom {
background: url(images/br.gif) no-repeat top right ! important;
}

img.corner {
width: 15px;
height: 15px;
border: none;
display: block !important;
}
</code>
the img.corner and all of the div.prodlinks styles are correctly
rendered.

excerpt from html:

<code>
<div class="prodlink s">
<div class="roundtop "><img src="images/tl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"> </div>
<h1>More on Aller-7®</h1> <ul>
<li><a href="../FAQs/Aller_7_faqs.as px">Aller-7® FAQs </a></li>
<li><a href="../research/research.aspx#A ller_7">Aller-7®
Research</a></li>
<li><a href="../news/news.aspx#Aller _7">Aller-7® News</a></li>
<li><a href="../comments/successstory1.a spx">Success Stories</a></li>
</ul>
<div class"roundbott om"><img src="images/bl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"></div>
</div>
</code>

I can not figure out how to write my CSS to correctly apply style to
the internal div elements with the "roundtop" and "roundbotto m"
classes.

I look forward to you assistance.


Jul 23 '05 #4
see also..

http://www.alistapart.com/articles/customcorners/

Frances
Fred Zilz wrote:
I am trying to use an external style sheet to create a round cornered
box. I am have difficulties correctly referencing my class in my
style sheet. I am posting an excerpt from my style sheet:

<code>div.prodl inks {font-family:Aria; float:right;
vertical-align:top; font-size:10px; background-color:#efbc24; }
div.prodlinks h1 {font-weight:bold; text-decoration:none ;
font-size:12px;font-family:Arial;ma rgin: 0 10px;
margin-bottom:0.5em;co lor:#993300}
div.prodlinks ul { list-style-type:none; font-family:Aria; margin: 0
10px; padding: 0;}
div.prodlinks ul li {text-indent:0.2em; text-align:left;marg in:
0.1em; padding: 0;font-size:12px; line-height:120%;}
div.prodlinks ul a {text-decoration:none ; color:#000000; }
div.prodlinks ul a:link { color:#000000}
div.prodlinks ul a:visited { color:#000000}
div.prodlinks ul a:hover {color:#993366}

div.wtloss {float:right; vertical-align:top; margin:0.8em;
border-spacing:1em; border-width:1em;}

.roundcont {
width: 250px;
background-color: background-color:#efbc24;
color: #fff;
}
.roundtop {
background: url(images/tr.gif) no-repeat top right ! important;
border-width:thick; border-color:Green;
}
.roundbottom {
background: url(images/br.gif) no-repeat top right ! important;
}

img.corner {
width: 15px;
height: 15px;
border: none;
display: block !important;
}
</code>
the img.corner and all of the div.prodlinks styles are correctly
rendered.

excerpt from html:

<code>
<div class="prodlink s">
<div class="roundtop "><img src="images/tl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"> </div>
<h1>More on Aller-7®</h1> <ul>
<li><a href="../FAQs/Aller_7_faqs.as px">Aller-7® FAQs </a></li>
<li><a href="../research/research.aspx#A ller_7">Aller-7®
Research</a></li>
<li><a href="../news/news.aspx#Aller _7">Aller-7® News</a></li>
<li><a href="../comments/successstory1.a spx">Success Stories</a></li>
</ul>
<div class"roundbott om"><img src="images/bl.gif" alt="" width="15"
height="15" class="corner" style="DISPLAY: none"></div>
</div>
</code>

I can not figure out how to write my CSS to correctly apply style to
the internal div elements with the "roundtop" and "roundbotto m"
classes.

I look forward to you assistance.


Jul 23 '05 #5

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

Similar topics

50
6297
by: Dan Perl | last post by:
There is something with initializing mutable class attributes that I am struggling with. I'll use an example to explain: class Father: attr1=None # this is OK attr2= # this is wrong def foo(self, data): self.attr1=data self.attr2.append(data) The initialization of attr1 is obviously OK, all instances of Father redefine it in the...
1
2992
by: Patrick Stinson | last post by:
I am trying to create a way to register static members of a **class**, not an object, for making an object factory. The main thing I want is to be able to make a call like class MyClass { public: MyClass *factory(); }; register(MyClass);
2
2159
by: Jim Red | last post by:
hello first of all, i know, there are no classes in javascript. but i will use that word for better understanding of my question. here we go. i have three classes and need a reference to the parent class. could this be done by a reference, or just by constructing the class. function Class1() { this.class2 = new Class2();
3
1148
by: usenet | last post by:
I have run into trouble with namespaces. The following code snippet illustrates the problem that I am facing: Class1 belongs to namespace NS1 and Class2 belongs to namespace NS2. I want to declare Class1 as a friend of Class2, and I am trying to invoke a protected (or private) method on Class2 from Class1. I have tried a few things, but...
5
3782
by: meyousikmann | last post by:
Given these two (incomplete but representative) classes in two seperate header files: Class1.h class Class1 { public: Class(const char CharValue, const int IntValue1, const int IntValue2); ~City();
2
5019
by: Steve James | last post by:
I am trying to mark an override method in a derived class as obsolete using the ObsoleteAttribute. The compiler, however is not picking up this attribute and is not generating a warning or an error. Sample code is below: If I put the attribute on the static method DoSomething() in the main class, a warning/error is generated by the...
2
1167
by: ThunderMusic | last post by:
Hi, I'm building a class library and I use some classes in my library that I would not like to expose when using the class library. I explain : I use let's say Class1, Class2 and Class3. In Class1, I have an instance of Class2 and in Class2 I have an instance of Class3. Class1 takes care of all the operations done with class2 and class2...
9
1414
by: Pyenos | last post by:
Approach 1: class Class1: class Class2: def __init__(self):self.variable="variable" class Class3: def method():print Class1().Class2().variable #problem Approach 1.1:
6
1865
by: DaveL | last post by:
How Can i Determine if a class Contains a Particular Field Variable Example public class AbastractClass { public int Field1 public int Field2 } public Class Class1:AbstractClass
1
2451
by: raylopez99 | last post by:
Here is an example of a home grown generic class, representing a pair of values. Adapted from Jon Skeet's book "C# In Depth". The generic class is "sealed" for some reason (I think for performance) so you cannot derive from it, but that's optional. The main thing in this example is to show the right format for using these generic classes,...
0
7653
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. ...
0
7803
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...
0
7749
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5322
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...
0
4942
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...
0
3444
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...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.