CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 5th, 2013, 10:15 AM
acetb2010 acetb2010 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 acetb2010 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 57 sec
Reputation Power: 0
Css image help

See i have this code for
Html page
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"href="style2.css">
<title>EndOfLine-Recommendation</title…
</head>
<body>
<div id="wrapper">
<header><img src="logo.png"></header>
</div>
</body>
</html>

css page
html
{
width:100%;
height:100%;
padding:0;
margin:0;
max-width:100%;
max-height:100%;
overflow:auto;
background-attachment:fixed;
background-color:black;
}
body
{
position:relative;
width:100%;
height:100%;
padding:0;
margin:0;
max-width:100%;
max-height:100%;
overflow:auto;
background-attachment:fixed;
background-color:black;
}
#wrapper
{
position:relative;
height:100%;
width:100%;
padding:0;
margin:0;
background:url("background.jpeg");
background-repeat:no-repeat;
background-color:black;
max-width:100%;
max-height:100%;
overflow:auto;
background-attachment:fixed;
}
header
{
position:relative;
left:25%;
max-width:100%;
max-height:20%;
height:20%;
}
header img
{
display:block;
position:relative;
width:50%;
height:70%;
max-height:70%;
max-width:50%;
}

the problem is that when i zoom out in the browser the logo remains of the same size but everything else becomes small but i want that the image also becomes small as i resize.Here is the link to the screenshot image [IMG]postimage.org/image/xg3fbn7s5/[/IMG] .I am new in css so please help me
I really appreciate it.

Reply With Quote
  #2  
Old February 5th, 2013, 10:32 AM
richpri's Avatar
richpri richpri is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Location: Chicago
Posts: 51 richpri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 43 m 32 sec
Reputation Power: 1
Facebook
Try adding "display:block;" to the css for the header.

For more info on header see http://html5doctor.com/the-header-element/

Reply With Quote
  #3  
Old February 5th, 2013, 11:01 AM
acetb2010 acetb2010 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 acetb2010 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 57 sec
Reputation Power: 0
Thank U for the response but it did not work.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Css image help

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap