Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Line up background to banner in css

Posted on 2009-07-07
9
Medium Priority
?
892 Views
Last Modified: 2012-05-07
I have a banner and a repeating background image that I can't get lined up properly. I want the line you see under the banner to disappear and line up with the background exactly. The images do match...but the css won't. Appreciate any help: http://www.shop.lagedethe.com/main.sc
]
body {
	padding: 0px;
	margin: 0px;
	background-image: url(http://www.lagedethe.com/images/back.jpg);
	background-repeat: repeat;
	color: #AB731C;
	font-size: 14px;
}
.sf_header_wrapper {
	margin: 0px;
	padding: 0px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}
 
.sf_main_header { background-image: url(http://www.lagedethe.com/images/banner.jpg);  height: 314px; width: 1038px; background-repeat: no-repeat; }
.float-wrap {
	width: 610px;
	float: right;
}
.sf_outer_wrapper {
	width: 1038px;
	background: url(http://www.lagedethe.com/images/repeat.jpg) repeat-y center;
	margin: 0px auto;
	height: 100%;
}
.sf_footer {
	border-top-style: none;
	margin-left: 200px;
	margin-top: 100px;
	padding-top: 200px;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}

Open in new window

0
Comment
Question by:ksa1016
[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
  • 5
  • 4
9 Comments
 
LVL 5

Expert Comment

by:sscotti
ID: 24796269
I think the issue is that the banner and the background don't match.  You either need to edit the banner so that it matches the background or use a .png or .gif tranparently for the banner so that there isn't a line where the banner and the background meet.

0
 

Author Comment

by:ksa1016
ID: 24796635
The banner and background DO match as I have tested it in other sections without the CSS.
0
 
LVL 5

Expert Comment

by:sscotti
ID: 24796688
If you use the web developer toolbar and disable the stylesheet layout_contemp.css then the background DO match.  There must be some css in that stylesheet that is causing the issue.
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!

 

Author Comment

by:ksa1016
ID: 24796998
OK it's this tag:

.center {
    float: right;
    width: 100%;
}

how do I adjust this so that it still floats but keeps the background aligned to the top?
0
 

Author Comment

by:ksa1016
ID: 24797011
And this also:

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
      margin: 0;
      padding: 0;
      border: 0;
      outline: 0;
      vertical-align: baseline;
}
0
 
LVL 5

Expert Comment

by:sscotti
ID: 24797105
Not sure at the moment.  If you nix the margin and padding and the center that part looks OK.  You might be able to figure it out on your own at this point.

Do you use Firefox and the Web Developer Toolbar and Firebug?
0
 

Author Comment

by:ksa1016
ID: 24797390
I am using all of these things and I cannot figure out how to override those elements. I cannot edit the original sheet, so I need to do in an override css file.
0
 
LVL 5

Expert Comment

by:sscotti
ID: 24797463
An alternative might be to position the background repeat.jpg image.  I think it is off my about 250px.  Needs to shoved down about that much.  Not sure where you have that in your code.
0
 
LVL 5

Accepted Solution

by:
sscotti earned 750 total points
ID: 24797496
.sf_outer_wrapper {
background-image:url(http://www.lagedethe.com/images/repeat.jpg);
background-position:center bottom;
background-repeat:repeat-y;
height:100%;
margin:0 auto;
width:1038px;
}

Might need to reposition the background through this.
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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

722 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