If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / How would I tell my style sheet not to put a border on my header images?

How would I tell my style sheet not to put a border on my header images?

Locked

Started by cdnbride on 7 Mar 2010, 1:33 AM · Views: 1,217

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
7 Mar 2010, 1:33 AM
#1
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

How would I tell my style sheet not to put a border on my header images?

Hi All

I've been really experimenting with my stylesheet to see what does what. And I've added a border to my images...pretty easy stuff but now the border is around part of my header (and I don't want that there) I used the FF web developer tool (as suggested for learning on the forum) and when I look at that part of my header it gives me the same location as all of my product listing images so can somebody tell me how I go about telling my stylesheet to put a border on all of the images EXCEPT what makes up my header?

Thanks
Lisa :smile:

Every bit of help I get here, gets me that much closer to helping others

7 Mar 2010, 3:28 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: How would I tell my style sheet not to put a border on my header images?

cdnbride:

Hi All

I've been really experimenting with my stylesheet to see what does what. And I've added a border to my images...pretty easy stuff but now the border is around part of my header (and I don't want that there) I used the FF web developer tool (as suggested for learning on the forum) and when I look at that part of my header it gives me the same location as all of my product listing images so can somebody tell me how I go about telling my stylesheet to put a border on all of the images EXCEPT what makes up my header?

Thanks
Lisa :smile:

Cd,
Need a link to the site please

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

7 Mar 2010, 12:00 PM
#3
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: How would I tell my style sheet not to put a border on my header images?

Hi haredo

Heres the link

site

Thanks for looking into this.

Lisa

Every bit of help I get here, gets me that much closer to helping others

7 Mar 2010, 1:17 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: How would I tell my style sheet not to put a border on my header images?

add this to end of your stylesheet.css

#logo img {
border:none;
}

hope it helps

7 Mar 2010, 2:06 PM
#5
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: How would I tell my style sheet not to put a border on my header images?

Great!

I was getting close i guess... i put

.header img{border: none;}

The biggest question that I have is, how do you know where to put things on the stylesheet? I was putting the code in close to the top where the "a img{" was because I assumed that it was all related and when I used the FF web dev tool that is where it specified.

I put your code in at the end of the sheet like you said and it works like a charm. So if I actually figure out the right code to make the changes that I want, how do I know where to put it?

Thank you tony_sar, I'm learning new stuff from all of you guys everyday.
Lisa

Every bit of help I get here, gets me that much closer to helping others

7 Mar 2010, 3:22 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: How would I tell my style sheet not to put a border on my header images?

Cd,
This is one very helpful link to teach you the funtions of css

http://www.w3schools.com/css/default.asp

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

7 Mar 2010, 3:30 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: How would I tell my style sheet not to put a border on my header images?

If you put a new rule near the top of your stylesheet and there is an existing rule that specifies the same properties for the same element later, the existing rule may override the new one. If there is no conflict, it doesn't matter where you put the new rule.
Putting rules that apply to a focused area in one place can make sense, or you could put new rules at the bottom.

And you almost had the right selectors, except that the header div has an id of header which is indicated in the stylesheet as #header, not a class of header which would be .header.

#header img{border: none;}
would have worked.