CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 April 2nd, 2004, 09:43 PM
Axsuul Axsuul is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: California, USA
Posts: 53 Axsuul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 5 sec
Reputation Power: 6
Send a message via ICQ to Axsuul Send a message via AIM to Axsuul
Need help to align in CSS

I have a problem where my image on top there is a little gap below it. This only happens in Internet Explorer and not Mozilla; i wish to rid of that gap. Also I am wondering how would I align the text on the right, i have tried applying the vertical-align: bottom but it does not work. Here is the link: http://www.bluebushel.com/temp/real.html The code is below.

MARKUP
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xml:lang="en">
 <head>
  <title>Bluebushel | The bushels are alright</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="includes/bluebushel.css" />
 </head>

<body>

<div align="center">
<div id="topBar">
<div class="logo">
<img src="images/testimage.jpg" alt="Bluebushel" />
</div>
<div class="nav">
View Bushel | Account | Order Status | Shipping & Returns | Help
</div>
</div>

</body>
</html>


CSS
Code:
body						{
								background-color: #E9E9DF;
								margin: 0em;
}
a.nav:link,
a.nav:visited				{
								color: #000000;
								font-family: Arial, Verdana;
								font-size: .8em;
								text-decoration: none;
}
a.nav:hover					{
								color: #336699;
								font-family: Arial, Verdana;
								font-size: .8em;
								text-decoration: none;
}

#topBar					    {
								background-color: #FFFFFF;
								border-left: 2px solid #C5C5C5;
								border-right: 2px solid #C5C5C5;
								border-bottom: 1px solid #EEEEEE;
								height: 5.79em;
								margin: 0em;
								padding: 0em;
								width: 50em;
}
#topBar .logo				{
								float: left;
								text-align: left;
}
#topBar .nav				{
								color: #E3E3E3;
								float: right;
								font-family: Arial, Verdana;
								font-size: .73em;
								height: 100%;
								text-align: right;
								vertical-align: middle;


Thank you for your time.

Reply With Quote
  #2  
Old April 3rd, 2004, 12:43 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,589 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 41 m 41 sec
Reputation Power: 662
Try this:
Code:
change this;

<img src="images/testimage.jpg" alt="Bluebushel" />
</div>

to this;

<img src="images/testimage.jpg" alt="Bluebushel" /></div>
It may be IE white space bug.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #3  
Old April 3rd, 2004, 01:07 AM
Axsuul Axsuul is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: California, USA
Posts: 53 Axsuul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 5 sec
Reputation Power: 6
Send a message via ICQ to Axsuul Send a message via AIM to Axsuul
Hallelujah! Thank you, it worked! Now does anyone know how I can vertically align the text on the right to the bottom? Thanks again!

Reply With Quote
  #4  
Old April 3rd, 2004, 01:01 PM
Axsuul Axsuul is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: California, USA
Posts: 53 Axsuul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 5 sec
Reputation Power: 6
Send a message via ICQ to Axsuul Send a message via AIM to Axsuul
Not solved bump.

Reply With Quote
  #5  
Old April 4th, 2004, 12:11 PM
Axsuul Axsuul is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: California, USA
Posts: 53 Axsuul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 5 sec
Reputation Power: 6
Send a message via ICQ to Axsuul Send a message via AIM to Axsuul
Not resolved bump.

Reply With Quote
  #6  
Old April 4th, 2004, 10:42 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,589 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 41 m 41 sec
Reputation Power: 662
Here is one way to do it:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta name="generator"
    content="HTML Tidy for Linux/x86 (vers 1st March 2002), see www.w3.org" />
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1" />

    <title>bushels link text align</title>
<style type="text/css">
/*<![CDATA[*/

html, body {
    margin: 0px;
    padding: 5px 0px 0px 0px;
    font: 90% serif;
    color: #333;
    background-color: #eee;
    }


p {
    font-size: 1em;
    }


#container {
    position: relative;
    margin: 0px auto;
    width: 780px;
    height: 100%;
    }    

.banner {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: 1px solid #666;
    background-color: #fff;
    }

.banner img {
    height: 100px;
    width:  380px;

    }

.links {
    position: absolute;
    bottom: 0px;
    right: 0px;
    margin: 0 5px 0 0;
    }

/*]]>*/
</style>
  </head>

  <body>
    <div id="container">
      <div class="banner">
        <img src="" alt="banner image" />
        <p class="links">View Bushel | Account | Order Status | Shipping & Returns |
      Help</p>
      </div>

    </div>
  </body>
</html>
BTW, it's a bad idea to bump. If it wasn't responded to, there is probably good reason. In this case, your OP had been resolved. The new problem should have been put in a new post.

cheers,

gary

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Need help to align in CSS


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT