473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

borders problem


hi
Can I remove double border of crossing/concat divs ?
here is my html
<html>
<head>
<title></title>
<style type="text/css">
..celldiv {
border: 1px solid #003399;
padding: 2px 2px 2px 2px;
}
</style>
</head>
<body>

<div class="celldiv">one</div>
<div class="celldiv">two</div>
<div class="celldiv">three</div>
<div class="celldiv">four</div>
</body>
</html>
Jul 21 '05 #1
6 2162
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
Can I remove double border of crossing/concat divs ?


..celldiv {
border: 1px solid #003399;
border-top:0;
padding: 2px 2px 2px 2px;
}
..celldiv.top{border-top:1px}

<div class="celldiv top">one</div>
<div class="celldiv">two</div>
<div class="celldiv">three</div>
<div class="celldiv">four</div>

--
Spartanicus
Jul 21 '05 #2

Uzytkownik "Spartanicus" <in*****@invalid.invalid> napisal w wiadomosci
news:fg********************************@news.spart anicus.utvinternet.ie...
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
Can I remove double border of crossing/concat divs ?


.celldiv {
border: 1px solid #003399;
border-top:0;
padding: 2px 2px 2px 2px;
}
.celldiv.top{border-top:1px}

<div class="celldiv top">one</div>
<div class="celldiv">two</div>
<div class="celldiv">three</div>
<div class="celldiv">four</div>

it doesn't work
Jul 21 '05 #3
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
it doesn't work


Change
.celldiv.top{border-top:1px}
To
.celldiv.top{border-top:1px solid #00339}


--
Spartanicus
Jul 21 '05 #4

Uzytkownik "Spartanicus" <in*****@invalid.invalid> napisal w wiadomosci
news:fg********************************@news.spart anicus.utvinternet.ie...
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
Can I remove double border of crossing/concat divs ?


.celldiv {
border: 1px solid #003399;
border-top:0;
padding: 2px 2px 2px 2px;
}
.celldiv.top{border-top:1px}

<div class="celldiv top">one</div>
<div class="celldiv">two</div>
<div class="celldiv">three</div>
<div class="celldiv">four</div>

You right it works but can I do without adding celldiv top ?
Jul 21 '05 #5
bastardx wrote:
Uzytkownik "Spartanicus" <in*****@invalid.invalid> napisal w wiadomosci
news:fg********************************@news.spart anicus.utvinternet.ie...
"bastardx" <ba******@S-P-A-Mop.pl> wrote:

Can I remove double border of crossing/concat divs ?


.celldiv {
border: 1px solid #003399;
border-top:0;
padding: 2px 2px 2px 2px;
}
.celldiv.top{border-top:1px}

<div class="celldiv top">one</div>
<div class="celldiv">two</div>
<div class="celldiv">three</div>
<div class="celldiv">four</div>

it doesn't work


..celldiv {
border: 1px solid #003399;
border-top:0;
padding: 2px 2px 2px 2px;
}
..top {
border-top: 1px solid #039;
}

Louise
Jul 21 '05 #6
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
You right it works but can I do without adding celldiv top ?


Not if you want it to work in IE.

--
Spartanicus
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hostile17 | last post by:
I've been trying to figure out a good way to make a CSS layout with nice-looking 1-pixel borders around the table cells. The only broadly compatible way to do this I know of is to have * the...
2
by: Haines Brown | last post by:
This may seem a pointless question, but I'm trying work around an inconsistency between browsers. I have a template that contains a division that holds a text that sometimes exists and sometimes...
7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
1
by: Glen Vermeylen | last post by:
Hi, For a project at school we have to automate the assignment of seats in classrooms to students during the exams. The lady who previously did everything manually kept the layouts of the...
10
by: Matt Kruse | last post by:
See: http://www.mattkruse.com/temp/offsetleft.html It appears that the offsetLeft value in IE6 (other versions not tested) incorrectly ignores the border width on a DIV when there is a width:...
10
by: steve | last post by:
Hi All I would like to be able to change the cell borders on certain cells to none at runtime to make a group of cells appear to be merged I have tried the following in the cellformatting...
2
satchmo67
by: satchmo67 | last post by:
Howdy, I want to reply to a really old post on this subject. The original poster was battling with the problem of trying to validate a frameset page and use the border attribute. I have been down...
2
by: cbjewelz | last post by:
Hey. I'm creating a horizontal boxed CSS menu for my site using lists. I wish to achieve a main menu bar something like this: http://kurafire.net/log/ however when I add borders to my code it...
9
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that I'd try and find out how to add borders for browers...
2
by: nicstel | last post by:
Hello, I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.