?
Solved

html document width

Posted on 2009-07-06
6
Medium Priority
?
438 Views
Last Modified: 2012-08-14
I've set the document background in an .aspx page, however I want the page background only to be a specific width... how can I do that?? as of right now the background always fills the whole browser page..
0
Comment
Question by:kuntilanak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:AsishRaj
ID: 24790902
0
 
LVL 9

Expert Comment

by:AsishRaj
ID: 24790926
can you post your code so that we can help you with that piece of code.
0
 
LVL 20

Expert Comment

by:ddayx10
ID: 24790954
Have to set the <body> width. Your reference to setting "document background" makes me think JavaScript is in play here, but ??

CSS:
<body style="background-image(url(someimage.gif)); width:760px; margin:0px auto;">

JavaScript:
document.body.style.width = '760px';
0
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 
LVL 9

Accepted Solution

by:
Rahul Goel ITIL earned 2000 total points
ID: 24791254
Create a Div tag
<div width="600" style="background-image(url(someimage.gif))">
</div>
0
 

Author Comment

by:kuntilanak
ID: 24791320
the site is only a page so I am not using any .css file.
0
 
LVL 9

Expert Comment

by:AsishRaj
ID: 24791330
you dont have to use a external Css file. You can have it one page and you can use any of the above mentioned methods to suit your need.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

762 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