Jump to content

Archived

This topic is now archived and is closed to further replies.

jwdavis1957

Adding 2px border that will surround all pages (not posts, but pages)

Recommended Posts

jwdavis1957

I have attempted to create a border for my site pages for several hours today.  Multiple css plugins failed, multiple code snippets failed.  My pages are essentially white against a typically white background, and I need the borders on the sides of the pages to increase text readability.

 

If you can help, do you know code for this task, and where do I paste it to achieve a uniform page border on all pages?

 

Jerry

 

 

Share this post


Link to post
Share on other sites
Danny

Hi Jerry,

 

So you're trying to achieve a border around your pages content, is that correct ?

If so, can you provide a link to the site in question please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
jwdavis1957

Sure, thanks.  http://www.jerrywdavis.com/decide/

 

I also use the "hero" feature on other pages, but the site is in very early stages of development so the "hero" feature is not present on all pages.  The border is only needed on the left and right edges, though.  I do not need a border on the top or bottom edges.  Thank you for looking in to this.  Placing borders on the page/wrap/whatever has been a tough nut to crack for me.

Share this post


Link to post
Share on other sites
Danny

Try something like this:

 

#page .content {
border-left: 10px solid #F00;
border-right: 10px solid #F00;
box-sizing: border-box;
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×