homepage Welcome to WebmasterWorld Guest from 54.226.166.224
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
How is solved background and MIN,MAX width?
toplisek




msg:4356067
 3:12 pm on Aug 28, 2011 (gmt 0)

I like to test how is solved background image if I have MIN,MAX width.

How to enlarge/resize background in this case?
It works when you do not have MAX,MIN as background will be placed. Issue is when there is MIN,MAX...

I have defined borders as following:
[PHP]

#middlewrap {
min-width: 1008px;
max-width: 1340px;
/* background: #FFFFFF url(../images/homepage/background1.jpg) repeat-y top; */
margin-left: 0px;
text-align: left;
overflow: hidden;
}

[/PHP]

Is there any possibility to add this background as dinamic to MAX,MIN width.

Background is as image and how will detect browser this resolution?
It works when you do not have MAX,MIN as background will be placed. Issue is when there is MIN,MAX...

 

lucy24




msg:4356096
 8:53 pm on Aug 28, 2011 (gmt 0)

Isn't that one of the hot new features of CSS3?

Oh, I have to mention something you didn't ask about. Do as I say, not as I do.
background: #FFFFFF url(../images/homepage/background1.jpg) repeat-y top;

Is this page-specific CSS or is it shared? Relative links are perilous at all times and they are doubly perilous in CSS shared by pages in different directories. Links such as background images are relative to the CSS, not to the page that displays them. (Voice Of Experience.) So be very very very careful ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved