Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 216
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
 
 
Register now for full access!
Old 07-28-2010, 09:29 AM Re: Replacing CSS with CSS
Super Talker

Posts: 139
Name: John Davis
Trades: 0
It's hard to say what is wrong without full html code.
Could you show full page code?
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 08-07-2010, 02:08 AM Re: Replacing CSS with CSS
Average Talker

Posts: 25
Name: Stephen
Location: Arizona
Trades: 0
.content-list-thumb is not closed.
__________________

Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
GetGamesHere is offline
Reply With Quote
View Public Profile Visit GetGamesHere's homepage!
 
Old 08-10-2010, 07:21 AM Re: Replacing CSS with CSS
CSM
CSM's Avatar
Front-End Developer

Posts: 297
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.
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Old 08-11-2010, 12:28 PM Re: Replacing CSS with CSS
Registered User

Posts: 86
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.65639 seconds with 12 queries