Solved

css- wrapper

Posted on 2011-02-24
7
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
LVL 40

Expert Comment

by:gurvinder372
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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Read text on Table 7 49
aria difference 2 22
Execute jQuery after Function 4 41
Want my table columns to autofit. 7 63
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…

759 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