Re: [css-d] css3 selectors

2009-03-26 Thread Michael Stewart
On Mar 26, 2009, at 10:06 AM, Mauricio ((Maujor)) Samy Silva wrote:

 I'm just curious, is there a css3 selector for previous siblings?   
 And if
 there is, how widely supported is it?
 -- 
 -
 Yes! There is.

 Sintax is:
 ul ~ p {...} matches p elements that comes before ul elements.

I don't believe that this is correct. This would match a p element  
that comes AFTER (though not necessarily immediately after) the list  
element.

See:
http://www.w3.org/TR/css3-selectors/#general-sibling-combinators


Michael Stewart
bagelstew...@gmail.com

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] background attachment?

2009-03-20 Thread Michael Stewart
On Mar 20, 2009, at 3:51 PM, Kim Brooks Wei wrote:

 Q1
 Is the way I set this up as a background image the same as using a
 background-attachment? If not, how would I change this to  
 conform? IE
 choked on my last version of this layout. I had the tiger as a fixed
 background img which was supposed to be left 75 top 30 but the tiger
 ended up over on the right side of the page.

Yes it is the same.

 Q2
 How can I get a border around that image which will stay fixed in  
 the
 same position as the image itself?

 Big headache, I know. All help appreciated as always,

I think the easiest way to do this would be to edit the image in an  
image editor and add the border that way. Then you might have to  
readjust your positioning slightly to account for the increased width  
and height.

Michael


Michael Stewart
bagelstew...@gmail.com

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] unwanted background-color on linked images

2009-03-14 Thread Michael Stewart
I can't seem to solve an issue I'm having involving background-color
on linked images.

As you'll see on the page I've referenced below, links (except for
those in the navigation bar) have a background-color when hovered.
I've also linked three images in the main portion of the page.
However, whenever one hovers over the images, the background-color of
the links peeks out from the bottom by a few pixels.

As a stopgap measure to get rid of the behavior I had added a class to
the links on the images making the background-color transparent. But
I'd rather just solve the problem and not resort to that. (I've taken
those classes off of them for the purpose of this post so that you can
see what I'm talking about.)

Any assistance is greatly appreciated.

Page:
http://www.furbishhome.com/temp/index.html

CSS:
http://www.furbishhome.com/temp/css/global.css

--
bagelstew...@gmail.com
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] unwanted background-color on linked images

2009-03-14 Thread Michael Stewart
Thanks, Georg, Rod, and Daniel for your replies. The suggestions were  
great and I ended up going with rendering the images as block elements.

I'm glad to have found this discussion list, and as a first time  
poster was really impressed by the speed of the responses.

Thanks again for your help.

Michael

On Mar 14, 2009, at 7:38 PM, Gunlaug Sørtun wrote:

 Michael Stewart wrote:
 [...] However, whenever one hovers over the images, the background- 
 color of the links peeks out from the bottom by a few pixels.

 http://www.furbishhome.com/temp/index.html

 Add...

 #main a img {display: block;}

 ...to make those images render as block-elements, instead of
 inline-elements which is default for images. That'll solve your  
 problem.

 regards
   Georg
 -- 
 http://www.gunlaug.no

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/