[advanced search]
NamePros Domain Auction
Live Event This Thursday at 6PM EDT - Prebidding open now
15 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Web Design Discussion
User Name
Password

Old 03-05-2003, 11:21 AM   · #1
ccc
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2003
Posts: 44
NP$: 28.00 (Donate)
ccc is an unknown quantity at this point
Borders in CSS

Is there a way to place two square or rectangular borders side by side with CSS?


Please register or log-in into NamePros to hide ads
ccc is offline   Reply With Quote
Old 03-05-2003, 01:09 PM   · #2
DarkDevil
NamePros Regular
 
Name: Nick
Location: Canada
Trader Rating: (0)
Join Date: Sep 2002
Posts: 498
NP$: 834.00 (Donate)
DarkDevil is an unknown quantity at this point
not sure what you mean...
a boarder is a boarder, its neither square nor rectangular
__________________
Sometimes I lay awake at night and I ask "Where have I gone wrong?" Then a little voice says "This is going to take more than one night"
DarkDevil is offline   Reply With Quote
Old 03-05-2003, 01:32 PM   · #3
ccc
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2003
Posts: 44
NP$: 28.00 (Donate)
ccc is an unknown quantity at this point
Quote:
Originally posted by DarkDevil
not sure what you mean...
a boarder is a boarder, its neither square nor rectangular



Well, I mean... when I put a border each around two paragraphs of text, then it will assume a square or rectangular shape which I can then manipulate each one (using px) into an equal size and shape.

I guess my qustion is : Can I put two paragraphs side by side and put a seperate border around each paragraph using CSS? I've tried to do it and what ends up happening is, the second paragraph winds up, not next to the first paragraph, but underneath it. If both paragraph's, with borders, could be represented by an upper cased "D" they would look like this on my page:















D D
ccc is offline   Reply With Quote
Old 03-05-2003, 04:31 PM   · #4
pistol
NamePros Member
 
Trader Rating: (0)
Join Date: Jan 2003
Posts: 132
NP$: 202.00 (Donate)
pistol is an unknown quantity at this point
hmmmm, ok. i'll pretend to understand what you're saying for a bit....

Why not put the paragraphs in two divs, have a width for each div, and absolute position them?

so like in your CSS file it would be like


#div {
border: 2px solid #000;
width: 100px;
}

and then your paragraphs in your html file would be like:

<div id="div" style="position: absolute; top:0px; left:0px;">
<p>paragraph 1</p>
</div>
<div id="div" style="position: absolute; top:0px; left:105px;">
<p>paragraph 2</p>
</div>

hopefully that'll make sense.
pistol is offline   Reply With Quote
Old 03-05-2003, 06:45 PM   · #5
ccc
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2003
Posts: 44
NP$: 28.00 (Donate)
ccc is an unknown quantity at this point
Quote:
Originally posted by pistol
hmmmm, ok. i'll pretend to understand what you're saying for a bit....

Why not put the paragraphs in two divs, have a width for each div, and absolute position them?

so like in your CSS file it would be like


#div {
border: 2px solid #000;
width: 100px;
}

and then your paragraphs in your html file would be like:

<div id="div" style="position: absolute; top:0px; left:0px;">
<p>paragraph 1</p>
</div>
<div id="div" style="position: absolute; top:0px; left:105px;">
<p>paragraph 2</p>
</div>

hopefully that'll make sense.



Thank you, pistol. It made perfect sense and worked very nicely.


P.S. The secret to understanding what I say is very simple: Assume you're dealing with someone who knows so little about html, css and javascript he doesn't even know how to phrase his questions or if the codes he's using are invalid or long out of use.
ccc is offline   Reply With Quote
Old 03-08-2003, 03:58 AM   · #6
pistol
NamePros Member
 
Trader Rating: (0)
Join Date: Jan 2003
Posts: 132
NP$: 202.00 (Donate)
pistol is an unknown quantity at this point
hahah, no problem! ^_^
pistol is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Traffic Down Under free webhosting Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 05:34 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0