NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page Tabless Design

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
10 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Closed Thread
 
LinkBack Thread Tools
Old 06-19-2006, 09:38 AM THREAD STARTER               #1 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold
 



Tabless Design


Im trying to get into tableless desgin (by using css)

How can i make 2 css align next to each other instead of going down one line?

Heres the code i have:

<div class="contentboxleft"><div class="contentright">a</div></div>
<div class="contentboxright"><div class="contentleft">a</div></div>
????: NamePros.com http://www.namepros.com/web-design-discussion/208766-tabless-design.html

It currently displays as:

-
-

But i want it to display like:

- -

Any one know?

Thanks,
Darren

Ive done this now using the float element. Blonde moment

Thanks,
Darren
dc1pop is offline  
Old 06-19-2006, 10:04 AM   #2 (permalink)
NamePros Member
Join Date: Aug 2003
Location: England
Posts: 124
Mateja will become famous soon enoughMateja will become famous soon enough
 



Ok my reply was tosh, let me have another look.

do you have the css to paste here?
Last edited by Mateja; 06-19-2006 at 10:10 AM.
Mateja is offline  
Old 06-19-2006, 10:13 AM   #3 (permalink)
Account Closed
 
LeetPCUser's Avatar
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,710
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
 


AIDS/HIV
Code:
css file

#container
{
 width:300px;
}

#contentboxleft
{
 float:left;
 width:150px;
}

#contextboxright
{
 float:right;
 width:150px;
}
here

Code:
html file
<div id="container">
  <div id="contentboxleft">
    woot, left
  </div>
  <div id="contentboxright">
    woot, right
  </div>
</div>
hope this helps!
LeetPCUser is offline  
Old 06-19-2006, 10:33 AM   #4 (permalink)
NamePros Member
Join Date: Mar 2006
Location: (US) Missouri
Posts: 70
Hobnob is on a distinguished road
 



float is not always the best rout to go, there are allot of problems you might run into later on in your project (but then again you might not, it all depends on what you are trying to achieve in the end). Here is another option you might find useful, if not for this particular task I know it will help you later.

keep the html code you already have and create a new css rule as follows:

div
{
display: inline;
}

and remove the 'float' from the rest of your css rules.

* when working with floats and inline displays you will find this handy too:
clear: both; clear: left; clear: right;

however, you will need to learn why and where that rule will go yourself (if I told you you wouldn't learn any thing).
Hobnob is offline  
Old 06-19-2006, 11:26 AM   #5 (permalink)
Account Closed
 
LeetPCUser's Avatar
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,710
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
 


AIDS/HIV
ehhh floats work well never had a problem. Inline is confusing.
LeetPCUser is offline  
Old 06-19-2006, 12:19 PM THREAD STARTER               #6 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold
 



Thanks guys and PCWEBAdvice i had my style sheet on my computer but didnt feel the need to post it up. I was thinking it was to do with the way the divs are layed out.

dc1pop is offline  
Old 06-19-2006, 12:41 PM   #7 (permalink)
Account Closed
 
LeetPCUser's Avatar
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,710
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
 


AIDS/HIV
Inline can work but is confusing. I've never had a problem with the floats and I use them all the time. Just make sure that the two fill the container in width. If it is even 1px too big it will return.
LeetPCUser is offline  
Old 06-19-2006, 12:44 PM   #8 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
You definately don't want to use inline.. that will make it stay.. in line.. and there would be no point in having it be a div. Span's are better for that.
Dan is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:40 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger