Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Why isnt this working?

Why isnt this working?

Locked

Views: 852

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
12 May 2010, 9:51 PM
#1
ambitions avatar

ambitions

Zen Follower

Join Date:
Apr 2010
Posts:
125
Plugin Contributions:
0

Why isnt this working?

Hi, this is my problem.

PIC1 Shows: My EZpages content, as you can see ive put my content inside a DIV tag and given it a class.

PIC2 Shows: How it displays, looks fine as no styling has been added.

PIC3 Shows: The styling im choosing, yet it does nothing, why?

12 May 2010, 10:11 PM
#2
paul69 avatar

paul69

Zen Follower

Join Date:
Jan 2010
Posts:
124
Plugin Contributions:
0

Re: Why isnt this working?

I wouldn't try that I'd just write the style in the html in the beginning as the tag is probably already preset some place.. I used an outside html editor and then pasted it as raw text in the editor NOT as html. But either way, I'd suggest an add-on using Firebug with Firefox to figure out which DIV Tag to use. I've saved my self so much time with that tool you have no idea.

12 May 2010, 10:15 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Why isnt this working?

Only rarely can these sorts of problem be diagnosed from images. We really need to see how the markup and CSS are interacting to provide advice on this.

12 May 2010, 10:39 PM
#4
ambitions avatar

ambitions

Zen Follower

Join Date:
Apr 2010
Posts:
125
Plugin Contributions:
0

Re: Why isnt this working?

12 May 2010, 10:51 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

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

Re: Why isnt this working?

i guess location of your css rule within CSS needs to be changed. add this after #mainWrapper {} in your css

#aboutusinfo {
margin-left:2em;
margin-right:2em;
}

and see it this helps.

12 May 2010, 11:01 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Why isnt this working?

Moving the styling will cause it to be recognized, but doesn't deal with the actual cause.

Better is to fix the error causing the problem - namely that the styles for #shippinginfotext are missing a closing bracket invalidating those that follow, including the one that you have noticed.

12 May 2010, 11:56 PM
#7
ambitions avatar

ambitions

Zen Follower

Join Date:
Apr 2010
Posts:
125
Plugin Contributions:
0

Re: Why isnt this working?

It was the closing bracket, thank you very much guys i feel so stupid :(

13 May 2010, 8:31 AM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Why isnt this working?

No need to feel that way. These are very easy mistakes to make. We all do it.

Usually when you've double checked the ID names, the presence of the styles in the stylesheet and everything else you can think of, and it still doesn't work - the missing bracket (or occasionally other syntax errors) in otherwise unrelated css is usually the problem.

This is also why images are rarely helpful, as they show what you have checked, not what you didn't know to check. :wink:

Glad it's sorted for you.