Page Properties

E

Eric

I have a website which utilizes shared borders. I decided
to make the margins zero so that the background color of
the left and right shared border would go to the edge of
the page. However, I would like this to be the same
throughout the website. Can I format all the pages in the
website the same without opening each page and setting the
margins. The website is not utilizing a theme.
 
S

Steve Easton

If you have a style sheet that is applied across the web,
add this to the body section

margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
 
J

Jon Spivey

you don't actually need margin-top margin-bottom etc. If they're all the
same you can do
margin 0;
If top/bottom left/right are the same
margin: 0 10%;
if they're different on each side
margin: 0 5px 10px 20px;
in order Top - Right - Bottom - Left

I don't deny being lazy :)
 
S

Steve Easton

Thanks John,

Learn something every day.
I should have known I was doing it the hard way.
;-)
 
G

Guest

I don't have any style sheets. Could I make one now and
then apply it to all pages. If so, I'm not sure the best
way to create and apply a style sheet.
 
S

Steve Easton

Inline

I don't have any style sheets. Could I make one now and
then apply it to all pages.

Yes

If so, I'm not sure the best
way to create and apply a style sheet.


Style sheets are created using notepad.
open Notepad.

Copy and paste the following

body {
margin: 0;
}

Save it as style.css or anyname.css you want.
Import it into your web.
Then open a page
Click Format > Style sheet links....
browse to your style sheet and then
select apply to all pages.


--
95isalive
This site is best viewed..................
...............................with a computer



 
Top