Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2011
    Location
    UK
    Posts
    72
    Plugin Contributions
    0

    help question Want to add a border around my main page text.

    Hi,

    I would like to add a thin border around the main text on my home page but dont know where to start. Would like it the same colour and thickness as my sideboxes. Please help.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Want to add a border around my main page text.

    We'll need a link to the site to be sure. In a stock Zencart installation you could add this to your stylesheet:

    #indexDefault.centerColumn {border: 1px solid;}

  3. #3
    Join Date
    Sep 2011
    Location
    UK
    Posts
    72
    Plugin Contributions
    0

    Default Re: Want to add a border around my main page text.


  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Want to add a border around my main page text.

    You'd want to add this to the stylesheet:

    #indexDefaultMainContent {border: 1px solid #FFA3A2; padding: 1em;}

    I would add the padding so it doesn't look all jammed up.

  5. #5
    Join Date
    Sep 2011
    Location
    UK
    Posts
    72
    Plugin Contributions
    0

    Default Re: Want to add a border around my main page text.

    Where do i add it in the stylesheet?

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Want to add a border around my main page text.

    I usually add additional rules at the bottom after a comment that says 'Everything after this point added by stevesh". That way I know where all the custom stuff is.

  7. #7
    Join Date
    Sep 2011
    Location
    UK
    Posts
    72
    Plugin Contributions
    0

    Default Re: Want to add a border around my main page text.

    Hi,

    Can find the main css stylesheet and have added the code but it doesnt seem to work. I added it to the classic template and default template to make sure but it still didnt work.
    Any ideas?

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Want to add a border around my main page text.

    I don't see that rule in your stylesheet.css file which would be in includes/templates/classic/css. If you get it in the right place, I guarantee it'll work.

  9. #9
    Join Date
    Sep 2011
    Location
    UK
    Posts
    72
    Plugin Contributions
    0

    Default Re: Want to add a border around my main page text.

    Hi,

    I have re-done it and it still hasnt worked.

  10. #10
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Want to add a border around my main page text.

    I'm looking at your stylesheet.css file right now, and that rule isn't in there. Are you sure the file is actually being uploaded after editing ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Border around image on main product info page only
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Mar 2011, 06:10 PM
  2. remove border around around images (not image border)
    By Otha in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Aug 2010, 06:03 AM
  3. Add a border around logo and nav main wrappers
    By charmedbytina2 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Oct 2008, 09:33 AM
  4. Help Please! Border showing around text on product page
    By jaylyns in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Apr 2008, 02:07 PM
  5. Is it possible to set a border around the main content area of my page?
    By jaz1974 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Oct 2006, 04:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg