Solved

html document width

Posted on 2009-07-06
6
435 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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 9

Accepted Solution

by:
Rahul Goel ITIL earned 500 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

695 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