Link to home
Start Free TrialLog in
Avatar of shrihalbe
shrihalbe

asked on

Background image ht and wd

Hi all,
 i would like to put background image in body tag. How can i do that at same time i would like to change the height and width of the image. how can i do that.

Thanks,
shriang
Avatar of Mark Franz
Mark Franz
Flag of United States of America image

You don't.  By placing the image in the background tag, you are limited to use the actual HxW of the original image.  However, it is possible to use a <div> tag with a z-index that is below everything else in the page.  Although this creates a CSS nightmare...

Why not just edit the original image to a HxW that you like?  
Avatar of cyanide
cyanide

I think that altering the image size using MS PhotoEditor will solve the problem.
CYANIDE
What is the purpose? Maybe if we know the end goal we can offer an appropriate solution. Otherwise, edit the image as mgfranz and cyanide suggested.
width and height cannot be changed.

CJ
Avatar of shrihalbe

ASKER

Hello
i would like to put the image exactly the size of frame.

thats why i would like to increase the size of image

thanks,
shrirang
If you know the image size, then you can use a <div> tag and set the z-index to 0, but then everything else will have to be in a <div> tag of 1 or more...

Why not just create the frame size the same size as the image?
ASKER CERTIFIED SOLUTION
Avatar of CJ_S
CJ_S
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello
i would like to put the image exactly the size of frame.

thats why i would like to increase the size of image

thanks,
shrirang
Hello CJ_S

Could you give me info on Div tag.

Thanks,
shri
Jees... Why duplicate my comments CJ?
well you need to do what cj_s told yo to.
and BTW CJ_S, who is that hot girl on your site BG.
mgfranz,
I'm sorry, I only wanted to show some additional code to your comment (for example purpose only).

Points should not be awarded to me but to mgfranz. If you take the approach.

shrihalbe,
what more info is required?

lexxwern,
it is Natalie Portman. I "borrowed" her image cuz it looked great. :-)

CJ
yo bet she looked great
From Star Wars!  
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> You cannot delete a question with comments, special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process for further information, if needed.  https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer but does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item in the future to seek help.

To view your open questions, please click the following link(s) and keep them all current with updates.
https://www.experts-exchange.com/questions/Q.20012108.html
https://www.experts-exchange.com/questions/Q.20260363.html
https://www.experts-exchange.com/questions/Q.20263560.html
https://www.experts-exchange.com/questions/Q.20270702.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
https://www.experts-exchange.com/questions/Q.11891580.html
https://www.experts-exchange.com/questions/Q.12044479.html
https://www.experts-exchange.com/questions/Q.20008402.html
https://www.experts-exchange.com/questions/Q.20141887.html
https://www.experts-exchange.com/questions/Q.20169099.html
https://www.experts-exchange.com/questions/Q.20165229.html

PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643

Moderators will finalize this question if still open in 7 days, by either moving this to the PAQ (Previously Asked Questions) at zero points, deleting it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Cd&
Just delete it... and the shrihalbe account...
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
delete with no refund of points

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
Thanks for returning and finalizing this.