Reply
Replacing CSS with CSS
Old 07-27-2010, 09:26 PM Replacing CSS with CSS
Extreme Talker

Posts: 196
Trades: 0
I have been replacing my web's square boxes with round-cornered boxes using this CSS:

Code:
.t {background: url(images/dot_B76E62.gif) 0 0 repeat-x; width: 53em}
.l {background: url(images/dot_B76E62.gif) 0 0 repeat-y; height: 15em}
.r {background: url(images/dot_B76E62.gif) 100% 0 repeat-y; height: 15em}
.b {background: url(images/dot_B76E62.gif) 0 100% repeat-x;}
.bl {background: url(images/box_bottom_left.gif) 0 100% no-repeat;border:none;height: 15em}
.br {background: url(images/box_bottom_right.gif) 100% 100% no-repeat;height: 15em}
.tl {background: url(images/box_top_left.gif) 0 0 no-repeat;height: 15em}
.tr {background: url(images/box_top_right.gif) 100% 0 no-repeat;padding:10px;height: 15em}
And it works fine, along with this html:

Code:
<div class="t"><div class="b"><div class="l"><div class="r"><div class="b"><div class="br"><div class="tl"><div class="tr">
</div></div></div></div></div></div></div></div>
I tried combing this contentlist box, css (below), with the above css, but it didn't work correctly, can you assist me?

Code:
/*--Content List Container--*/
#content-list {
  width: 640px;
  display: inline-block;
  list-style-type: none;
  border: 6px solid #960000;
  margin-bottom: 5px;
  float: left;
}

#content-list li {
  list-style-type: none;
}

.content-list-narrow {
  width: 256px;
  padding: 5px 4px;
}

#content-list-narrow li {
  margin: 5px 0px;
}

#content-list a:link { color: #000000; text-decoration: none; }
#content-list a:visited { color: #5798ca; text-decoration: none; }
#content-list a:hover { color: #a9ceea; }

.content-list-thumb {
  width: 102px;
chrisj is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-28-2010, 08:29 AM Re: Replacing CSS with CSS
Super Talker

Posts: 140
Name: John Davis
Trades: 0
It's hard to say what is wrong without full html code.
Could you show full page code?
__________________
http://www.fla-shop.com - Interactive maps for websites
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 08-07-2010, 01:08 AM Re: Replacing CSS with CSS
Average Talker

Posts: 18
Name: Stephen
Location: Arizona
Trades: 0
.content-list-thumb is not closed.
__________________
Tank Games and Sniper Games
GetGamesHere is offline
Reply With Quote
View Public Profile Visit GetGamesHere's homepage!
 
Old 08-10-2010, 06:21 AM Re: Replacing CSS with CSS
CSM
CSM's Avatar
Skilled Talker

Posts: 79
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
Sometimes it is the best to use http://validator.w3.org/ and watch the errors it shows you.
__________________
Front-End Developer / System Engineer
Studentenjob
XHTML-valid-websites Forum - Join and watch Screencasts and Demos
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Old 08-11-2010, 11:28 AM Re: Replacing CSS with CSS
Skilled Talker

Posts: 88
Name: John Dacu
Trades: 0
If a div haven't defined a height and is empty then the depending on browser you could end up with a 0 height element. That's whay i guess it doesn't work
johnny.dacu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Replacing CSS with CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13038 seconds with 13 queries