display inline ????

This is a discussion on "display inline ????" within the Web Page Design section. This forum, and the thread "display inline ???? are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 7th, 2005, 16:16
Junior Member
Join Date: Aug 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
display inline ????

I have a bunch of wrapper divs containing various positioned elements, and I would like to lay the wrappers out side by side. using display: inline worked fine in IE but not in firefox and not after I added the doctype to the page. Now, using display:inline sends everything all over the shop! (stop me if i'm getting too technical)

You can see these working here : www.hygienesuppliesdirect.com/newprod.htm
And like I said, I need the 2 boxes (and some more) side by side.

Here's the html:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">

<div id="main1" style="width:200px; height:110px; border:1px solid slategray; font-family:arial;margin:5px; padding:3px; position:relative;display:inline ">

 
  <div style="position:absolute; top:-1px;left:-1px;">[img]images/topleft.gif[/img]</div>
  <div style="position:absolute; top:-1px;right:-1px;">[img]images/topright.gif[/img]</div>
  <div style="position:absolute; bottom:-1px;left:-1px;">[img]images/botleft.gif[/img]</div>
  <div style="position:absolute; bottom:-1px;right:-1px;">[img]images/botright.gif[/img]</div>
  
  <div style="position:relative">[img]images/summarypics/12843.jpg[/img]</div>
    <div style="position:absolute; bottom:-20px;left:-20px">[img]images/starburst.gif[/img]</div><div style="position:absolute; bottom:-2px;left:-2px; color:white; font-weight:bold;font-size:10pt;">£20</div>
  
  <div style="position:absolute; top:3px;left:50px; width:145px;">
    <div style="text-align:center; color:#800080; font-size:13pt; font-weight:bold;line-height:0.75em;">Catering Urn 15lt</div>
    <div style="text-align:left; font-size:9pt; color:red; font-weight:bold; padding-left:20px;">£25.99 <span style="color;black; font-size:7pt">(£27.99 inc. VAT)</span></div>
    <div style="text-align:center; font-size:11pt; font-weight:bold; color: #611EDC;padding-left:20px;">Only 20 Left!</div>
    <div style="text-align:left; font-size:8pt; color:#7777FF; padding-left:20px;">more info on this item...</div>
    <div style="text-align:left; font-size:8pt; color:#7777FF; padding-left:20px;">more Catering urns...</div>
  </div>
  <div style="position:absolute; bottom:3px; right:10px;">[img]images/buybutton.gif[/img]</div>
</div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 7th, 2005, 18:26
Banned Member
Join Date: Sep 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
1. yu want stuff side-bi-side...yuze a tabel.
2. the "gurus" sae "display:inline" is a krutch dezined tu get around IE bug
IE oft du thangs its wae, not the konsortium wae.
the guru "solution" is...dont yuze IE. (not very yuzeful)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 8th, 2005, 01:43
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
try float:left;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 8th, 2005, 05:51
Junior Member
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Pheonix
try float:left;
Also, after you float them all, your next opening tag may require a "clear: left" (or "clear: both" to be safe/lazy :-P).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
display, inline

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
<li> problem :: How to make appear list-style-image while choosing display:inline sayamish Web Page Design 2 Oct 21st, 2007 05:19
Overriding display:inline-block gazzou Web Page Design 0 Aug 27th, 2007 12:03
inline lists and rollovers Accurax Web Page Design 10 Mar 29th, 2007 01:27
Inline div Echilon Web Page Design 0 Feb 3rd, 2006 16:06


All times are GMT. The time now is 17:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42