are borders ok?

A

aslindy

I have been putting borders around information on the home page of my web
site - www.goodshepherdmidland.org - to keep things organized. I apply them
by selecting the text, then using Format/Borders and Shading. Since there is
a varying amount of information posted each week, some times I have more
boxes, and sometimes less, and this seems the easiest way to maintain it.
Right now there is just one box on that page.

Is there any reason this is not a good way to make boxes?

Amy

(I say "my website" but I'm just the person doing the updates.)
 
R

Ronx

It's probably the best way to make boxes, but I would change the method.

Using the example on your home page:


<p align="center" class="style3">&nbsp;<div style="border-left-style:
solid; border-left-width: 1px; border-right-style: solid;
border-right-width: 1px; border-top-style: solid; border-top-width:
1px">

Loads of content

<div style="border-bottom-style: solid; border-bottom-width: 1px">
<p align="center" class="style3">
&nbsp;</div>
</div>

Change to

<div style="border: solid 1px black; text-align: center;">

Loads of content

</div>
 
A

aslindy

Thanks for the input.

I work mostly in design mode, as I am just learning html as I go, but I do
look at the code fairly frequently to see just what it is that makes it look
the way I want. I hadn't looked too closely at the code for the border. What
you say makes perfect sense. I'll try it out like that.

It's possible it got so complicated from when I previously had several boxes
on the page... or really, one large box divided into sections. I did some
custom borders, usually just adding in a top or bottom border, so I wouldn't
have doubled borders along the sides. (If that makes any sense at all... I
don't really understand why it works the way it does, yet.) Sometimes the
lines of the box go around more than just the text I've selected... all the
way to the top or bottom of the text area, for example.

Is there some other, better way to organize the information, rather than
using a border? Since I don't want everything to be in boxes, I don't think
a table would be a good choice.

I appreciate the help.

Amy
 
R

Ronx

A table, or tables, may be the best way to go - it is the simplest
method.

It is not necessary to display borders on every cell in a table. Using
CSS you can pick and choose which table cells to put borders round.
Take a look at http://www.rxs-enterprises.org/tests/pages/tables.htm as
an example. All the required CSS is in the code (View Source in
browser)

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top