473,805 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS Custom Borders

Dy
Hi all

I'm trying to creat a custom border like this:

#container {
width:770px;
background: url(images/background.gif) repeat-y;
padding:0; margin:0;
}

The customer image has the left and right border, each side's border is
10px.

Therefore I've created the #main and #rightnav with margins of 10px.

While it displays correctly on MS IE6, it doesn't display the border at
all on Opera, Netscape or Firefox.

The margin attributes should be transparent, so what am I doing wrong.

Thanks in advance

Feb 4 '06 #1
9 2627
On Sat, 04 Feb 2006 11:25:46 +0100, Dy <dy********@hot mail.com> wrote:
I'm trying to creat a custom border like this:

#container {
width:770px;
background: url(images/background.gif) repeat-y;
padding:0; margin:0;
}

The customer image has the left and right border, each side's border is
10px.

Therefore I've created the #main and #rightnav with margins of 10px.

While it displays correctly on MS IE6, it doesn't display the border at
all on Opera, Netscape or Firefox.

The margin attributes should be transparent, so what am I doing wrong.


This really makes no sense to me. Please provide URL so we can se the
problem child.

--
______PretLette rs:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Feb 4 '06 #2
Dy
Here you go:

http://www.red-enet.com/essenceofspain/

Looks great on IE6 - doesn't work on Opera, Firefox or Netscape.

Thanks!

Feb 4 '06 #3
On Sat, 04 Feb 2006 11:35:19 +0100, Dy <dy********@hot mail.com> wrote:
Here you go:
? Please learn how to quote properly:
<URL:http://www.html-faq.com/etiquette/?quoting>
http://www.red-enet.com/essenceofspain/

Looks great on IE6 - doesn't work on Opera, Firefox or Netscape.

Might have something to do with the odd div that is before the start tag
of the body element:
<URL:http://validator.w3.or g/check?uri=http% 3A%2F%2Fwww.red-enet.com%2Fesse nceofspain%2F>

Didn't look any further. First get that corrected and see what happens
then. Usually with only one mistake, I don't take that very seriously. But
this is a mistake one really shouldn't make. It could make all the
difference, since a browser thrying to render your document will put a
start tag for the body element before that 'premature' div. Hence the
second start tag for the body element could just not be doing anything
anymore.

--
______PretLette rs:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Feb 4 '06 #4

Dy wrote:
Here you go:

http://www.red-enet.com/essenceofspain/
Did you validate your code before posting? If so, why do you have a div
outside the body?
Looks great on IE6 - doesn't work on Opera, Firefox or Netscape.


Please quote part of the message you are replying to. Not everyone will
have seen the earlier messages in the thread and hence have no idea
what you are talking about.

IE is getting it wrong, as usual. The other browsers are doing what
you've asked them to do.

#main is floated left.
#rightbar is floated right.
Hence #container has its height determined by #top alone.

Floated elements are taken outside the document flow and hence do not
contribute to the height of their parent elements. So your background
image is constrained to a shorter portion of the page. Add an element
with clear: both; after the two columns but inside #container to extend
the parent to encompass the full height of both columns. Then you can
get to work on the real problems such as the fixed font size.

Steve

Feb 4 '06 #5
Dy
No - it's not that because I only put that div in for testing.

Anyway - it's corrected and makes no difference

Thanks

Feb 4 '06 #6
On Sat, 04 Feb 2006 13:02:00 +0100, Dy <dy********@hot mail.com> wrote:
No [...]


'I don't want to be helped here, really, you know'

<URL:http://www.safalra.com/special/googlegroupsrep ly/>
<URL:http://www.spartanicus .utvinternet.ie/help_us_help_yo u.htm>

--
______PretLette rs:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Feb 4 '06 #7
Dy
Please quote part of the message you are replying to. Not everyone will
have seen the earlier messages in the thread and hence have no idea
what you are talking about.

OK - no problem - will do :)
IE is getting it wrong, as usual. The other browsers are doing what
you've asked them to do.

#main is floated left.
#rightbar is floated right.
Hence #container has its height determined by #top alone.

Floated elements are taken outside the document flow and hence do not
contribute to the height of their parent elements. So your background
image is constrained to a shorter portion of the page. Add an element
with clear: both; after the two columns but inside #container to extend
the parent to encompass the full height of both columns. Then you can
get to work on the real problems such as the fixed font size.


I must confess, I was a bit suspicious that IE was getting it wrong -
thanks for your help on this, it works a treat.

Feb 4 '06 #8
The border has to be on the CONTAINER not the image.

-------------------------------------------------------------------------
"Dy" <dy********@hot mail.com> wrote in message
news:11******** *************@g 44g2000cwa.goog legroups.com...
Hi all

I'm trying to creat a custom border like this:

#container {
width:770px;
background: url(images/background.gif) repeat-y;
padding:0; margin:0;
} ----------------------------------------
#container {
border-left:10px solid #008000; border-right:10px solid #008000;
background-image: url('eossnowfla ke2a.gif'); background-repeat: repeat;
background-attachment: scroll; padding-left:4px; padding-right:4px;
padding-top:0; padding-bottom:0
}


The customer image has the left and right border, each side's border is
10px.

Therefore I've created the #main and #rightnav with margins of 10px.

While it displays correctly on MS IE6, it doesn't display the border at
all on Opera, Netscape or Firefox.

The margin attributes should be transparent, so what am I doing wrong.

Thanks in advance

Feb 4 '06 #9
"Windsun" <wi******@earth link.net> wrote in message
news:0I******** **********@news read2.news.pas. earthlink.net.. .
The border has to be on the CONTAINER not the image.
NM - I misread your message - thought you were trying to put a border on the
outside overall.

-------------------------------------------------------------------------
"Dy" <dy********@hot mail.com> wrote in message
news:11******** *************@g 44g2000cwa.goog legroups.com...
Hi all

I'm trying to creat a custom border like this:

#container {
width:770px;
background: url(images/background.gif) repeat-y;
padding:0; margin:0;
}

----------------------------------------
#container {
border-left:10px solid #008000; border-right:10px solid #008000;
background-image: url('eossnowfla ke2a.gif'); background-repeat: repeat;
background-attachment: scroll; padding-left:4px; padding-right:4px;
padding-top:0; padding-bottom:0
}


The customer image has the left and right border, each side's border is
10px.

Therefore I've created the #main and #rightnav with margins of 10px.

While it displays correctly on MS IE6, it doesn't display the border at
all on Opera, Netscape or Firefox.

The margin attributes should be transparent, so what am I doing wrong.

Thanks in advance


Feb 4 '06 #10

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

Similar topics

2
3466
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 border of the table set to zero * the cellspacing of the table set to one * the background color set to black * the table cell background color set to white
0
7661
by: Mike Pierson | last post by:
Hello all: I have a C# windows application that needs a custom calendar. I need this calendar displayed as a month view. I also need the ability to insert/manipulate images and text into each day cell. I will also need drag and drop functionality for each item in the day. I figure there is two ways to go about this; 1) create a user control for use in a windows form or 2) use a web page in a web browser control. Which method would...
3
11894
by: Nick Haines | last post by:
I need to write my own custom text edit control.. but I'm not sure where to start - I've never written a custom control... the features I want are somewhat similar to the VS .Net text editor - text colouring, collapsible regions etc... I haven't been able to find anything that could achieve that which is free... So what is the suggested starting point? Can I make some kind of control that derives from a RichEdit box and write my own...
3
1947
by: Kyle Fitzgerald | last post by:
I've started a web control library project and can build my own controls to add to the toolbox in the .NET environment. The problem I'm having is I want to create a control just like the HTML table where I could drag my control on the page and then drag and drop other controls into the cells of the table. I've tried creating my own and I tried to inherit from system.ui.htmlcontrols.htmltable but I can not get it to have the borders and...
1
2085
by: Sanjay Pais | last post by:
I am using .NET 2005 Beta 2. I need to create a custom property for a text box like this. My custom property is called ApplySecurity. <asp:TextBox ID="txtTextBox1" ApplySecurity="True" runat="server"></asp:TextBox>
1
1086
by: Andrew Hayward | last post by:
I have a custom form, with all borders, title bar, etc. being drawn internally. Native borders and so on have been disabled. Because of this, however, resizing is a bit of a problem, and generally looks quite messy. Was hoping that I could use the grey border/outline method (ie by not actually resizing the window) by calling SendMessage with WM_ENTERSIZEMOVE, but that doesn't seem to work. I'm kind of new to this Windows API stuff, so if...
0
1258
by: diatom | last post by:
Hello, In a windows application, I just created a new custom user control. This custom user control is simply a dialog that I want to re-use. When my dialog opens, by default it is located in the top left corner of my screen. More importantly, I cannot move it around. What properties/methods do I need to implement to allow: 1. the user to move the dialog around? 2. create borders that include the normal options of minimizing (-)...
9
2934
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 like Firefox which don't support them. Not sure if I've explained the above well but my borders display in IE but not in Firefox.
2
30968
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 and what is the all other border type name? "borders: top double, bottom double, left double, right double;" Thank You Nicolas
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10107
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.