css and div issues

Questions and answers about ShopSite Custom Templates

css and div issues

Postby powerstream » Sat Dec 07, 2013 3:57 pm

I am trying to make my Shopsite pages look like the rest of my website.

My website is based on CSS and Div position definitions. I created a custom template
that has all this format, just like the original website.

However, adding the tags
[-- DEFINE PAGE --] and [-- END_DEFINE PAGE --] to the document wipes out all
the position formatting of the Div's and all the Divs merge at the top left corner
of the page.

help!

thanks
mark
powerstream
 
Posts: 43
Joined: Mon Sep 11, 2006 7:29 am

Re: css and div issues

Postby Jim » Sun Dec 08, 2013 8:56 am

ShopSite templates use the # character as the first of the line to indicate a comment.
Some css classes are defined with a #. So if your css has # characters as the first character of the line that essentially comments out the class and would lead to missing formatting on the html page.

So check your css and add a space in front of any line that has a # as the very first character. (unless you want that commented out.)
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: css and div issues

Postby powerstream » Mon Dec 09, 2013 10:08 pm

That's it! Now to forge ahead, thanks
mark
powerstream
 
Posts: 43
Joined: Mon Sep 11, 2006 7:29 am

Re: css and div issues

Postby powerstream » Wed Dec 11, 2013 9:44 am

Actually, this idea didn't work. I even put /**/ in front of each # (/**/ is the CSS comment tag) and
the divs are still congregating at the top left of the screen. Any more ideas?

best regards
mark
powerstream
 
Posts: 43
Joined: Mon Sep 11, 2006 7:29 am

Re: css and div issues

Postby Jim » Wed Dec 11, 2013 10:22 am

A link to the page with the problem would be helpful so we can see what is actually in the html source. But we would also need to see the template to see what may be missing. As the template could be large you could email or PM a copy of your template to me so that I can see what is actually in the template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: css and div issues

Postby powerstream » Wed Dec 11, 2013 5:30 pm

I got all the directories straight, and it is now working, thanks!
powerstream
 
Posts: 43
Joined: Mon Sep 11, 2006 7:29 am


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 8 guests

cron