Solved

css- wrapper

Posted on 2011-02-24
7
349 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

760 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