Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-10-2007, 06:23 PM
PolarBear's Avatar
I am creative
 
Join Date: Jul 2007
Location: Toronto
Gender: Male
Posts: 362
Default Settings on styles

As you will see with the code below, I want my .fly style (which is just text) to have a border around it, instead the #layer is getting that border around it, any idea why ?

Thank You



#Layer1 {
position:absolute;
width:333px;
height:278px;
z-index:3;
left: 565px;
top: 409px;
background-attachment: scroll;
background-image: url(simple_graphic.png);
background-repeat: no-repeat;
}
.fly {
background-color: #999966;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-width: medium;
border-right-width: medium;
border-bottom-width: medium;
border-left-width: medium;
}
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote

  #2 (permalink)  
Old 23-10-2007, 08:47 PM
onesummer's Avatar
Experienced Member
 
Join Date: Jul 2007
Posts: 275
Default

please post the html for the area that has the div "Layer1" and the elments that have the .fly class. I'm guessing it has something to do with how the two are layed out in the html... also can you give the link to see it happening?
__________________
- onesummer (paul)
http://www.onesummer.net
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 23-10-2007, 09:07 PM
PR Design's Avatar
CSS Wizardry -- Not Gay!
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 5,821
Default

You can shorten all that to
Code:
background-color: #999966;
border-style: solid;
border-width: medium;
btw.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 23-10-2007, 10:13 PM
PolarBear's Avatar
I am creative
 
Join Date: Jul 2007
Location: Toronto
Gender: Male
Posts: 362
Default

<div class="color" id="Layer2"></div>
<div class="fly" id="Layer1">

I hope that helps the file is offline.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 25-10-2007, 04:50 AM
rossable's Avatar
sarcastic encouragement, brilliant!
 
Join Date: Oct 2007
Location: IN, USA
Gender: Male
Posts: 1,055
Default

Quote:
Originally Posted by PolarBear View Post
<div class="color" id="Layer2"></div>
<div class="fly" id="Layer1">

I hope that helps the file is offline.
both styles are being applied to the same element. if you want to seperate them then you need to do something like

<div id="Layer1">
<span class="fly">content</span>
</div>
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 25-10-2007, 11:59 AM
onesummer's Avatar
Experienced Member
 
Join Date: Jul 2007
Posts: 275
Default

do what rossable suggested.
__________________
- onesummer (paul)
http://www.onesummer.net
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web 2.0 Styles for Fireworks Graphic Design Links Graphic Design Links 0 03-03-2008 07:30 PM
two b-card styles. cdn Graphic Design Showcase 6 09-09-2007 08:24 AM
Decades past styles PolarBear Graphic Design Forum 6 15-07-2007 08:33 PM
Early Styles Toon Graphic Design Forum 3 06-05-2007 09:16 PM
Help on display settings Graphicallycorrect Off Topic 3 15-03-2007 01:54 PM


All times are GMT. The time now is 09:56 PM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0