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

x
?
Solved

css- wrapper

Posted on 2011-02-24
7
Medium Priority
?
402 Views
Last Modified: 2012-06-27
I have a question regarding defining background with/height:

Normally i define a wrapper like:

#wrapper {
background-repeat:no-repeat;
background-image:url(../grafik/backgroundm.jpg);  
position: absolute;
height:916px;
width:1600px;  
z-index: 0;
left: 50%;
margin-left: -800px;
top:0px;
}

That center the background as it should.

But If I have a background picture like 1600x916 it makes scroll bars on screens that can´t run this resolution. I would instead just like, that the background image just centers and that no scroll bars appears

0
Comment
Question by:rossoneris
  • 4
  • 2
7 Comments
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 34967937
try attached code

HTH

Ivo Stoykov
Sub setColor()
  Select Case Range("D" & ActiveCell.Row).Value
    Case "15 Days", "30 Days"
        Range("E" & ActiveCell.Row & ":F" & ActiveCell.Row).Select
    Case "45 Days", "60 Days"
        Range("E" & ActiveCell.Row & ":G" & ActiveCell.Row).Select
    Case "90 Days"
        Range("E" & ActiveCell.Row & ":H" & ActiveCell.Row).Select
    Case "120 Days"
        Range("E" & ActiveCell.Row & ":I" & ActiveCell.Row).Select
    Case "immidiate"
        Range("E" & ActiveCell.Row & ":J" & ActiveCell.Row).Select
  End Select
  With Selection.Interior
      .Pattern = xlSolid
      .PatternColorIndex = xlAutomatic
      .Color = 65535
      .TintAndShade = 0
      .PatternTintAndShade = 0
  End With
End Sub

Open in new window

0
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 34967940
sorry wrong posting...
0
 

Author Comment

by:rossoneris
ID: 34967972
And here is my html



<html>

<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>title</title>
</head>

<body>

<div id="wrapper">
<div id="menutv">menuv</div>
<div id="menuh">menuh</div>
<div id="content">content</div>

</div>


</body>

</html>
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 34968050
try adding overflow:hidden to the #wrapper style

0
 

Author Comment

by:rossoneris
ID: 34968096
Have tried that - but it don´t fix it, because I have defined width/height and as long it fits to those px nothing is "cut off"
0
 

Accepted Solution

by:
rossoneris earned 0 total points
ID: 34968404
made the background in the body - now it is ok
0
 

Author Closing Comment

by:rossoneris
ID: 35005077
working
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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…

824 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