Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

A border on the right side of the window?
 

Pierre Jelenc




quote this post edit post

IP Loged report this post

Old Post  09-24-05 - 09:21 AM  
I am trying to put a graphical border along the top, left, and right edges
of a page. For left and top I have an oversize GIF with the proper
graphics used as the background-image of either the body or an inside div.
For the right, I tried a floated div of height: 100% and with the
complementary right border as the background-image, and containing a
1-pixel high transparent GIF.

This simplified example does not work:

http://www.web-ho.com/temp/index.html

(The same result obtains if the styles for #window are applied directly to
the body.)

Both HTML and CSS validate, but the floated div is the height of the
transparent GIF instead of 100% of the containing div or body. How can I
force the div to extend the full size of the window (and no more so as not
to introduce unneeded scroll bars)? I do not want to constrain the width
of the page, so a fixed-size image won't do.

Pierre
--
Pierre Jelenc         |      New on Home Office Records: Ethan Lipton
|  www.homeofficerecords.com     www.ethanlipton.com
The Gigometer       |          Pepper Of The Earth: the HO blog
www.gigometer.com     |           www.homeofficerecords.com/blog


Post Follow-Up to this message ]
Re: A border on the right side of the window?
 

Spartanicus




quote this post edit post

IP Loged report this post

Old Post  09-24-05 - 09:21 AM  
rcpj@panix.com (Pierre Jelenc) wrote:

>I am trying to put a graphical border along the top, left, and right edges
>of a page.

Plenty of examples of how to do that on the web:
http://www.google.com/search?q=css+rounded+borders

--
Spartanicus


Post Follow-Up to this message ]
Re: A border on the right side of the window?
 

Van der Weij




quote this post edit post

IP Loged report this post

Old Post  09-24-05 - 09:21 AM  
Working example Firefox only it seems, (I miss the left-top border in IE):
Changed: height: 100% on body. Rest could be kept the same.

<style type="text/css" media="screen">
<!--
body {margin: 0; padding: 0; background-color: #fff; color: #000080;
font-family: Arial, Helvetica, sans-serif; height: 100%; }

#window {margin: 0; padding: 0; width: 100%; height: 100%;background-im
age:

url(gradient2.gif);
background-position: top left; background-repeat: no-repeat;
background-attachment: fixed;}


#main p  {text-indent: 2em;}

#rightborder {float: right; background-image:  url(gradient2r.gif);
width: 16px; height: 100%; }

-->
</style>




Post Follow-Up to this message ]
Re: A border on the right side of the window?
 

Pierre Jelenc




quote this post edit post

IP Loged report this post

Old Post  09-24-05 - 11:20 PM  
Spartanicus  <invalid@invalid.invalid> writes:
> rcpj@panix.com (Pierre Jelenc) wrote:
> 
>
> Plenty of examples of how to do that on the web:
> http://www.google.com/search?q=css+rounded+borders

Thanks. I didn't think of searching for rounded corners, since mine are
beveled...

Pierre
--
Pierre Jelenc         |      New on Home Office Records: Ethan Lipton
|  www.homeofficerecords.com     www.ethanlipton.com
The Gigometer       |          Pepper Of The Earth: the HO blog
www.gigometer.com     |           www.homeofficerecords.com/blog


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 07:15 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top