[Webinar] Streamline your web hosting managementRegister Today


How can I set a border

Posted on 1999-11-04
Medium Priority
Last Modified: 2010-04-09
I want to set a border around the body of my html document.  How can I do this in a way that the two major browsers will display the page similarly?
 For 50 more points:  Is there an object/element that I can place on the html document so that I can specify attributes to it that are separate from the document?  I want to put text in this document but I don't want to use rows and columns.
Question by:whatever080697

Accepted Solution

slydon earned 400 total points
ID: 2184443
Try using a frameset, and box in the body using blank frames around it.
something like this:

<frameset rows="50,*,50">
  <frame src="1.htm" marginwidth="0" marginheight="0" noresize frameborder="NO" scrolling="NO">
  <frameset cols="50,*,50">
    <frame src="2.htm" name="" marginwidth="0" marginheight="0" noresize frameborder="NO">
    <frame src="3.htm" marginwidth="0" marginheight="0" noresize scrolling="AUTO" frameborder="NO">
    <frame src="4.htm" marginwidth="0" marginheight="0" noresize frameborder="NO">
  <frame src="5.htm" marginwidth="0" marginheight="0" scrolling="NO" noresize frameborder="NO">

If you assign names to the frames, you can then assign attributes to items based on the frame

Author Comment

ID: 2185282
I haven't tested your answer yet, but I can tell that it seems good.  Thanks.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question