Substyle

This is a discussion on "Substyle" within the Web Page Design section. This forum, and the thread "Substyle are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 8th, 2003, 17:26
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Substyle

Say for example I want to make a DIV tag, and have all the images inside that DIV have a red border, but not affect the border of the images outside the DIV then what's the syntax for that?

If the DIV has ID="sample" would it be something like
#sample.IMG {border:red;} ?

  #2 (permalink)  
Old Oct 8th, 2003, 18:23
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
exactly that, but without the .

#sample img {
border: 1px solid red;
}
  #3 (permalink)  
Old Oct 8th, 2003, 20:59
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ah cool. Thanks
Closed Thread

Tags
substyle

Thread Tools

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


All times are GMT. The time now is 00:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43