Solved

CSS Inline vs Block Problem

Posted on 2009-05-06
5
98 Views
Last Modified: 2013-07-30
I cannot get my buttons to display as anything but as a block. Any idea why this won't display as an inline element? Thanks!
#buttonAccounting, #buttonFood, #buttonEquipment, #buttonGalley, #buttonCabinSys,
#buttonPassenger, #buttonDisability, #buttonCoats, #buttonIFE, #buttonConnectingInfo
{
	display:inline;
	height: 175px;
	width: 175px;
}
 
#buttonAccounting
{
	background: url(../images/e4button_money_regular.png) no-repeat;
}
 
#buttonAccounting:active
{
	background: url(../images/e4button_money_pressed.png) no-repeat;
}
 
/************************************************** HTML ****************************************************/
 
<a href="pages/accounting.aspx" id="buttonAccounting" onmousedown="javascript:PageMethods.downClick(5, 0);" onmouseup="javascript:PageMethods.upClick(5, 0);"></a>

Open in new window

0
Comment
Question by:ckehoe
  • 2
5 Comments
 
LVL 13

Expert Comment

by:Brian Withun
ID: 24318442
It's inline for me.  I don't think I did anything particular to it...
<html>
<head>
<style>
 
#buttonAccounting, #buttonFood, #buttonEquipment, #buttonGalley, #buttonCabinSys,
#buttonPassenger, #buttonDisability, #buttonCoats, #buttonIFE, #buttonConnectingInfo
{
	display:inline;
	height: 175px;
	width: 175px;
    border: 1px solid #333;
}
 
#buttonAccounting
{
	background: url(EE_Badge.gif) no-repeat;
}
 
#buttonAccounting:active
{
	background: url(EE_Badge.gif) no-repeat;
}
 
</style>
</head>
<body>
 
<p> this is my 
<a href="pages/accounting.aspx" id="buttonAccounting" onmousedown="javascript:PageMethods.downClick(5, 0);" onmouseup="javascript:PageMethods.upClick(5, 0);">my link</a> button inline </p>
 
</body>
</html>

Open in new window

inline.jpg
0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24318459
0
 
LVL 42

Expert Comment

by:David S.
ID: 24318468
@bhwithun

In quirks mode, IE wrongly applies the width and height properties to inline elements.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39366294
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to Left-Align Navigation bar? 4 26
Make navigation bar highlight the page you are on. 1 19
move widget title down 4 19
Only three borders showing on image 5 19
"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

773 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