Reply
drawing a box
Old 06-13-2005, 12:41 PM drawing a box
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
does anyone know how i can draw a box like the one on www.autotrader.co.uk the grey box around the txt as i have txt i want to put a box around but dont want a table outline as it too thick
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
When You Register, These Ads Go Away!
Old 06-13-2005, 01:41 PM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,864
Location: Blackpool. UK
border:1px solid #CCCCCC;
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-13-2005, 02:24 PM
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
where does that go is that the full code
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-13-2005, 02:28 PM
angele803's Avatar
Perfectly Imperfect

Posts: 1,605
Name: Stephanie
Location: Oklahoma
I think you could do an inline style and just put the code around the paragraph. For example, try this. I am just now figuring out CSS so I am not 100% sure this is right, but it is worth a try.

<p style="border:1px solid #CCCCCC">
paragraph text goes here
</p>
angele803 is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:33 PM
-_darkranger_-'s Avatar
Super Talker

Posts: 122
Location: bolton...
no that is the css code... put something like...

<style type="text/css">
.box1 {
border-width: 1px;
border-style: solid;
border-colour: #CCCCCC;
}
</style>

and in the table tag put class="box1"
-_darkranger_- is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:35 PM
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
that worked but next how do i set the size of the box
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-13-2005, 02:36 PM
-_darkranger_-'s Avatar
Super Talker

Posts: 122
Location: bolton...
Quote:
Originally Posted by angele803
I think you could do an inline style and just put the code around the paragraph. For example, try this. I am just now figuring out CSS so I am not 100% sure this is right, but it is worth a try.

<p style="border:1px solid #CCCCCC">
paragraph text goes here
</p>
that is right but it is better if you put it in style tags so that you can use it in more than 1 thing easily and can change it very easily so it changes in everyplace it used
-_darkranger_- is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:38 PM
-_darkranger_-'s Avatar
Super Talker

Posts: 122
Location: bolton...
Quote:
Originally Posted by millwalll
that worked but next how do i set the size of the box
font-family: whatever font you want for example...Modern No. 20;
font-size: what ever size you want for example...14px;

***EDIT*** sorry i miss read i thought you said the size of the text in the box anyway... size of the box...? do you mean how big the table is or what...?

Last edited by -_darkranger_- : 06-13-2005 at 02:40 PM.
-_darkranger_- is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:44 PM
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
hi darkranger what the full code as i jsut tried it and it dont do anyhitnk
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-13-2005, 02:46 PM
-_darkranger_-'s Avatar
Super Talker

Posts: 122
Location: bolton...
hmmm post the code and what you want to do and ill show you where to edit it and what somethings you dont no do...
-_darkranger_- is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:51 PM
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
thi is the code i want the box inside the table
</head>

<body>
<table width="200" border="1">
<tr>
<td>&nbsp;</td>
</tr>
</table>

</body>
</html>
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-13-2005, 02:56 PM
-_darkranger_-'s Avatar
Super Talker

Posts: 122
Location: bolton...
Quote:
Originally Posted by millwalll
thi is the code i want the box inside the table
</head>

<body>
<table width="200" border="1">
<tr>
<td>&nbsp;</td>
</tr>
</table>

</body>
</html>
Code:
<head>
<title>whatever</title>
<style type="text/css">
.box1 {
border-width: 1px;
border-style: solid;
border-colour: #CCCCCC;
}
</style>
</head>

<body>
<table width="200" class="box1">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
that should work ¬.¬ if it doesnt ill kill it ¬.¬

Last edited by -_darkranger_- : 06-13-2005 at 02:57 PM. Reason: felt like it...
-_darkranger_- is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:59 PM
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
ok next question if i wanted to make another one what would i do also how can i adjust the size of it or will it just fix tot he table layout
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-14-2005, 02:28 AM
The_Anomaly's Avatar
Extreme Talker

Posts: 201
Location: Boston, Ma
an extention to his first question, how would you put the text right in the middle of the top of the box. ex

Code:
        --random text-------------|
                   |                                   |
                   |                                   |
                   |                                   |
                   |                                   |
                   |                                   |
                   |                                   |
                   |                                   |
                   ------------------------------
well that didnt work, i think you get the idea
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 06-14-2005, 02:45 AM
millwalll's Avatar
Webmaster Talker

Posts: 576
Name: James
Location: KENT
if your using dreamweaver you select inside the box then u set the horzontal and vertical to centre and middle
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-17-2005, 03:42 PM
Experienced Talker

Posts: 32
or use this matey

Code:
<html>

<fieldset>
<legend>
Title Of Box Or whatnot:
</legend>
<P>
Hello Welcome to this box with a fielset around it. Or whatever text you would like inside the box here.
</p>
<p></p>
</fieldset>


</html>
Im quite new so i hope this is what you ment.

Hope it helps

Greetz
zerox3k is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to drawing a box
 

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.18245 seconds with 12 queries