Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Dots in image border?
Old 04-10-2008, 09:44 PM Dots in image border?
Average Talker

Posts: 22
Trades: 0
Anyone have example html where i can put dots on border of image?Or those dots actualy goes to table instead image code?In any case i need those dots as border.
JACOBKELL is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-10-2008, 09:46 PM Re: Dots in image border?
BamaStangGuy's Avatar
Defies a Status

Posts: 1,779
Trades: 2
Not sure I know exactly what you mean. Here are the border attributes:

Code:
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
If I get what you are saying then style="border: 1px dotted #ccc'" would get you started.
__________________

Please login or register to view this content. Registration is FREE
- Ford Mustang Enthusiast Website

Please login or register to view this content. Registration is FREE
- General Music Discussion Forum

BamaStangGuy is offline
Reply With Quote
View Public Profile Visit BamaStangGuy's homepage!
 
Old 04-15-2008, 12:38 AM Re: Dots in image border?
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Using CSS, something like:

Code:
.dots {
    border: 1px dotted #00f;
}
Code:
<div class="dots">
stuff
</div>
joder is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 04:39 PM Re: Dots in image border?
OS Master's Avatar
Junior Talker

Posts: 1
Trades: 0
I think you would need to put the image code into the DIV tag, although I'm not sure exactly what you are looking for. Here's the code:

Code:
<html>
<head>
<style type="text/css">
.border {
    border: 1px dotted #000000;
}
</style>
</head>
<body>
<div class="border">
//Put image code here
</div>
</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
OS Master is offline
Reply With Quote
View Public Profile Visit OS Master's homepage!
 
Old 04-15-2008, 05:01 PM Re: Dots in image border?
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
beware it looks a bit naff in IE
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 04-15-2008, 05:18 PM Re: Dots in image border?
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
You could always set the dots just for the image.

Code:
img {border:1px dotted black;}
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-16-2008, 05:17 PM Re: Dots in image border?
Webmaster Talker

Posts: 560
Trades: 0
Or open up the image in Photoshop and add the dots that way, haha. Probably wouldn't want to do that unless the image always "had" dots around the border.

Matt
__________________

Please login or register to view this content. Registration is FREE
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 07-20-2008, 08:54 PM Re: Dots in image border?
Average Talker

Posts: 22
Trades: 0
Quote:
Originally Posted by joder View Post
Using CSS, something like:

Code:
.dots {
    border: 1px dotted #00f;
}
Code:
<div class="dots">
stuff
</div>
This code works,but problem is i need to repeat it to each table to make it work.Is it possible to put that code only once so i can see it on every table
JACOBKELL is offline
Reply With Quote
View Public Profile
 
Old 07-20-2008, 11:04 PM Re: Dots in image border?
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
If your putting the border on a table, put in your CSS file

Code:
table {
    border: 1px dotted #00f;
    border-collapse: collapse;
}

td {
    border: 1px dotted #00f;
    border-collapse: collapse;
}
Could be done in one code block, but you should put other thing in your CSS for each individual element such as padding.
joder is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 12:06 PM Re: Dots in image border?
Average Talker

Posts: 22
Trades: 0
Quote:
Originally Posted by joder View Post
If your putting the border on a table, put in your CSS file

Code:
table {
    border: 1px dotted #00f;
    border-collapse: collapse;
}

td {
    border: 1px dotted #00f;
    border-collapse: collapse;
}
Could be done in one code block, but you should put other thing in your CSS for each individual element such as padding.
It works.But now question is what with tables where i dont want border ?How do i define that ?
JACOBKELL is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 12:40 PM Re: Dots in image border?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You can define a class and assign it to the tables that you want the dotted border to be on.

For example:

.table_border{border:1px dotted #00f;}

Then put class="table_border" on the tables that you want to show a dotted border
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 01:19 PM Re: Dots in image border?
Average Talker

Posts: 22
Trades: 0
No i need to have all tables with dotes as joder described.But the problem is what if i need of one table to have without dots?That is problem.

Last edited by JACOBKELL; 07-21-2008 at 01:28 PM..
JACOBKELL is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 02:23 PM Re: Dots in image border?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
But the problem is what if i need of one table to have without dots?That is problem.
No it's not. You use CSS, create a class that removes or changes the border for that isolated table, then add the class to the html.

You really shouldn't be using tables for layout anyway -- very 1995
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 02:45 PM Re: Dots in image border?
Average Talker

Posts: 22
Trades: 0
Quote:
Originally Posted by LadynRed View Post
No it's not. You use CSS, create a class that removes or changes the border for that isolated table, then add the class to the html.

You really shouldn't be using tables for layout anyway -- very 1995
Actualy i dont use tables i use img tag only that is just for example.
JACOBKELL is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 02:48 PM Re: Dots in image border?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I see.. images only ? How do you make a decent website with ONLY images ??
Either way - same CSS applies
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 02:58 PM Re: Dots in image border?
Average Talker

Posts: 22
Trades: 0
Quote:
Originally Posted by LadynRed View Post
I see.. images only ? How do you make a decent website with ONLY images ??
Either way - same CSS applies
Lol who said it's only images there?In any case
this is code which i have now:
<style type="text/css">

img {
border: 10px dotted #00f;
border-collapse: collapse;
}
And i need to know how to dissalow influence to images where i dont want border.
JACOBKELL is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 06:13 PM Re: Dots in image border?
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Code:
img .noImgBorder {
    border-style: none;
}
Then on an image that you don't want a border
<img class="noImgBorder" .... >
joder is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 08:34 PM Re: Dots in image border?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
border-collapse: collapse - applies to tables - NOT images.

Quote:
And i need to know how to dissalow influence to images where i dont want border.
I told you, create a class in your CSS and add that class to the image/element you want to be different - just like Joder has illustrated.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-22-2008, 08:57 AM Re: Dots in image border?
khammam's Avatar
Novice Talker

Posts: 7
Name: GoldenWebDesign
Location: charlotte, north carolina, USA
Trades: 0
you can use as follows,

style="border:1px dotted #ff0000;"

it may help you
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
khammam is offline
Reply With Quote
View Public Profile Visit khammam's homepage!
 
Old 07-22-2008, 02:32 PM Re: Dots in image border?
Average Talker

Posts: 22
Trades: 0
It seems i founded by accident solution.
Instead img tag i puted td tag as joder originaly posted.
And i noticed then dots didnt show on each image,only on images with tag border.
I will post example here later.
JACOBKELL is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dots in image border?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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 3.66824 seconds with 12 queries