Solved

css- wrapper

Posted on 2011-02-24
7
358 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Find out what you should include to make the best professional email signature for your organization.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now