Solved

html document width

Posted on 2009-07-06
6
393 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
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 9

Accepted Solution

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now