I think this is what you need if I’m understanding you correctly:
<div id="wrapperHeader"> <div id="header"> <img src="images/logo.png" alt="logo" /> </div> </div> div#wrapperHeader { width:100%; height;200px; /* height of the background image? */ background:url(images/header.png) repeat-x 0 0; text-align:center; } div#wrapperHeader div#header { width:1000px; height:200px; margin:0 auto; } div#wrapperHeader div#header img { width:; /* the width of the logo image */ height:; /* the height of the logo image */ margin:0 auto; }
Related Posts:
- Embed image in a
- Is element block level or inline level?
- How do I auto-resize an image to fit a ‘div’ container?
- CSS Display an Image Resized and Cropped
- How to place a text next to the picture?
- CSS: Moving the text down a few pixels but keeping the background still?
- Bootstrap 4 images thumbnail classes
- CSS: Moving the text down a few pixels but keeping the background still?
- CSS Background image not loading
- How to “crop” a rectangular image into a square with CSS?
- Is it possible to set the equivalent of a src attribute of an img tag in CSS?
- How to add image that is on my computer to a site in css or html?
- How to make a monopoly board using css grid?
- How to horizontally center an element
- Unblur content inside blurring background div
- How to set a border for an HTML div tag
- Setting table column width
- Why does z-index not work?
- Image is not showing in browser?
- Creating a nav bar with flexbox
- How to line-break from css, without using
? - How to put img inline with text
- How to center a “position: absolute” element
- How do I make an image smaller with CSS?
- Two divs side by side – Fluid display
- What is sr-only in Bootstrap 3?
- How to put a text beside the image?
- FontAwesome icons are not showing, Why?
- Remove border from IFrame
- How to change text transparency in HTML/CSS?
- CSS horizontal scroll
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- AngularJS ngClass conditional
- How to darken a background using CSS?
- text-overflow: ellipsis not working
- How to reference nested classes with css?
- Placing border inside of div and not on its edge
- Why is there an unexplainable gap between these inline-block div elements?
- How to apply CSS to iframe?
- Change Color of Fonts in DIV (CSS)
- Why is “cursor:pointer” effect in CSS not working
- How to move text up using CSS when nothing is working
- How to style input and submit button with CSS?
- How to display image with JavaScript?
- a href link for entire div in HTML/CSS
- How to outline text in HTML / CSS
- Complete list of reasons why a css file might not be working
- Brackets – Live Preview not working
- HTML iframe – disable scroll
- CSS set li indent
- how to overlap two div in css?
- Why does this CSS margin-top style not work?
- How to center content in a Bootstrap column?
- Freeze the top row for an html table only (Fixed Table Header Scrolling)
- HTML list-style-type dash
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How do I install a custom font on an HTML site
- How can I make my footer center to the bottom of the page?
- How to align an input tag to the center without specifying the width?
- How can I embed video for discord directly from website?
- Why would max-width not work on this?
- Basic CSS – how to overlay a DIV with semi-transparent DIV on top
- difference between width auto and width 100 percent
- Making text background transparent but not text itself
- How to show text on image when hovering?
- Square brackets in CSS
- How do I disable form fields using CSS?
- Why write script type=”text/javascript” when the mime type is set by the server?
- Fit background image to div
- body background color not showing?
- Table scroll with HTML and CSS
- Set cellpadding and cellspacing in CSS?
- How to make my website fit any screen size?
- Display:inline not working
- CSS content property: is it possible to insert HTML instead of Text?
- How to increase height of textarea using bootstrap rows and columns
- Indent List in HTML and CSS
- Bootstrap 3 Glyphicons CDN
- Absolute position is not working
- Position absolute but relative to parent
- How do you specify table padding in CSS? ( table, not cell padding )
- Two Divs next to each other, that then stack with responsive change
- Add stroke around text – on the outside – with css?
- SVG drop shadow using css3
- Making an image act like a button
- Force table column widths to always be fixed regardless of contents
- Change the color of glyphicons to blue in some- but not at all places using Bootstrap 2
- Using Numbers With Font Awesome
- Is it possible to use css to shrink text to automatically fit the size of the div
- HTML5 Canvas Rotate Image
- Create a slanted edge to a div [duplicate]
- Removing whitespace between HTML elements when using line breaks
- How can I align text directly beneath an image?
- how do I get the bullet points of a
- to center with the text?
- Override USER AGENT STYLE SHEET – Chrome
- jQuery find element by data attribute value
- aking a flex item float right
- CSS: Can a div “float:middle” rather than “float:left;” with margin-left?
- WordPress footer menu floating with height of footer