Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to resize an image changing the size resolution of the page

Posted on 2012-08-03
6
Medium Priority
?
1,079 Views
Last Modified: 2012-08-03
I found this pages: http://www.altaour.com and http://www.fiftythree.com/paper

If you change the size resolution of your browser you will see that the the image remains in the center.

And also if you increase the size resolution of your browser you will see new parts of the same image

I would like to know how to do that to my page.
0
Comment
Question by:altariamx2003
  • 3
  • 3
6 Comments
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 38256284
it's a background image with centered positioning.

something like this:

.container{

   background:url(big-image.jpg) center center no-repeat;
   width:100%;
}
0
 

Author Comment

by:altariamx2003
ID: 38256886
I tried that but the background image remains in the same place no matter what wich resolution I use

check this:

resolution: 1920x1080
resolution: 1920x1080

resolution: 1280x720
resolution:1280x720
as you can see with the lower resolution the background image remains in the center of the screen


I would like to do something like that
0
 

Author Comment

by:altariamx2003
ID: 38256902
could this workk???

.container{
   background : url(big-image.jpg) no-repeat fixed center center transparent;
   
   width:100%;

}

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 2000 total points
ID: 38256906
here's an example:

http://candpgeneration.com/EE/EE-bigimage.html

this works exactly like the two websites you posted. view source.
0
 

Author Comment

by:altariamx2003
ID: 38256916
it works!!

thanks!!!
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 38256966
:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

876 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