Borders with CSS - works and does not

Greetings! I try to apply borders using CSS. I have a #id called container, centres of all the content in a browser window. When I apply the border on the container tag settings, they do not appear. When I apply the border settings to a tag in the container, it works very well. What am I doing wrong / have to do differently?

Here is a link to the example page:
http://www.hillphoenix.com/temp/borderTest.html

And here is the CSS code:
< style type = "text/css" >
<!--
#container {}
margin: auto;
Width: 920px;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #000000;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #000000;

}
{#linkColumn}
do-family: Arial, Helvetica, without serif.
do-size: 12px;
text-align: right;
float: left;
Width: 160px;
margin-top: 50px;
text-decoration: none;
background-color: #999966;
}
#mainContent {}
Width: 740px;
float: right;
}
.centered {} #mainContent
text-align: center;
margin-top: 0px;
text-decoration: none;
border-color: #000000;
}
#mainContent .copyText {}
do-family: Arial, Helvetica, without serif.
do-size: 12px;
text-align: left;
margin-top:-14px;
padding-left: 5px;
padding-right: 5px;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #000000;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #000000;
}

->
< / style >

graylensman wrote:
> Thank you for the quick response.
>
> When I apply the main content id to a single tag, I don't always get a border
> around the entire container tag.

The 'real' reason that you don't see borders on "container".

because you need to clear your floating that are inside
"container".

Two ways to do this:

(1) add
just before the closing
tag "container", as below



OR

(2) add overflow: hidden; to the css "container", as below.

#container {}
margin: auto;
Width: 920px;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #000000;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #000000;
overflow: hidden;

}

At the moment I agree with method 1. just because you can see the results
DW Design view.

Method 2. is much cleaner, BUT still you can not see the effect directly
in Design view of DW (maybe in the next version, that you will be able)
Someone trying out the beta version of DW CS4 might be able to
shed some light on this.

> On a related note, I used the same id on multiple tags, as well as pages
> seem to work well...

While it says that you SHOULD use ONLY once an ID on every page that
isn't the problem on this occasion. (I forgot where and when the use of)
more than one ID, you will get into trouble).

Best practice is to use an ID only once per page. If you need to
Duplicate the css on several items per page, and then use a css "class."
specifier.

Tags: Dreamweaver

Similar Questions

  • Once I changed my ISP my computer network does not work and does not recognize my router lynsys

    Once I changed my ISP my computer network does not work and does not recognize my router lynsys

    Hi George,.
    Please go to the Microsoft Community Forums.
     
    1. do you get an error message?
    2. do you have the internet connection wired or wireless?
    3. What is the brand and model of the computer?
     
    I suggest to refer to the links and follow the steps in the articles:
     
    Wireless and wired network problems
     
    Resources for the resolution of the problems of modem in Windows XP
     
    How to troubleshoot wireless network connections in Windows XP Service Pack 2
     
    How to reset the Protocol Internet (TCP/IP)
     
    If the problem persists, contact the Internet service provider for assistance.
     
    I hope this helps.
  • iPhone 7 more - Siri iOS10 not work and does not

    I received my iPhone 7 Plus 3 days ago and tried to set up "Hey Siri". In the process, I noticed that Siri was insensitive and does not work.

    I did some troubleshooting and started with the reset, restore, turned dictation & Siri/off voltage (before and after reboot) and still no response from Siri.

    I proceeded to remove the hardware problem by making a call and speaking directly into the microphone with high and low height during a call. Nobody who assists heard both high and low perfectly. I only tested the microphone with voice memo and the microphone worked fine.

    Called customer service on speaker (which call was working properly) but they were unable to provide a response, rep said she would follow with me Wednesday.

    I press the home button, Siri will appear with the wavelength and as soon as I said a word Siri States "I didn't understand" and rest wavelength normal. I don't know if there is a problem with my phone or iOS10, but if someone has an answer or has the same issue please chime. Thank you!

    iOS 10, when using Siri, you hold DOWN the home button while talking with Siri.  Release the button when you are finished speaking.

    Best,

    GDG

  • Peripheral USB take two tests at work and does not start with Time Machine drive connected

    I have a 2015 mid Macbook Pro 15 "work (so I can't afford to take this service for a period of days). My specs are:

    I am running the latest version of El Capitan, 10.11.4.

    My problem is that USB devices - such as Logitech USB headsets, USB sticks, external hard drives, etc. - always and I always say, require two plugins to be detected by the system. It doesn't work the first time. I always have to connect once, remove it and plug it in again.

    In addition, if I try to boot the system with my Time Machine/external USB HD drive, it won't start at all. Only if I reboot without all the devices connected it boot successfully.

    My questions are: is it a software or a hardware problem? And someone saw this before? I think it's a hardware problem, although the last notes of patch involve the last update of OS may have addressed a similar issue with audio devices. (This would affect my Logitech USB headset no doubt, but it did not help). If it is a hardware problem that requires a fix of the motherboard, I can't do it, since the new it's a working machine that I can't part with for a long period of time, unless SHE is willing to trade me a machine on-site. It does not affect other most operation every day except that I need to plug devices twice, all the time.

    Thank you, everyone.

    Try this-

    How to reset the NVRAM on your Mac - Apple Support

    Reset the management system (SCM) controller on your Mac - Apple Support

  • Windows media Center and games does not work, and does not work error message d3d8thk.dll

    my media library does not work and message d3d8thk.dll isn't continuous work to come.  How should I do?

    D3d8.dll error message could apply to any program that uses Microsoft DirectX, most video games.  I suggest following the steps below to solve the problem.

    1 restart your computer if you have not yet.

    D3d8.dll error could be a stroke of luck and a simple restart could clear up completely.

    2. install the latest version of Microsoft DirectX.  Chances are, the upgrade to the latest version of DirectX will fix the d3d8.dll not found error.

    Note: Microsoft frequently publishes updates of DirectX without updating the version number or letter, so don't forget to install the latest version even if your version is technically identical.

    Note: The latest version of DirectX should be installed no matter if you are running Windows 7, Windows Vista or Windows XP.  Installation can include DirectX9 and DirectX10 files but they run side-by-side without problem on all these operating systems.

    3. assuming that the latest version of Microsoft DirectX does not correct the error of d3d8.dll you receive, search for an installer of DirectX on your game or application CD or DVD.  Usually, if a game or other program uses DirectX, software developers includes a copy of DirectX on the installation disc.

    Sometimes, but not often, the DirectX version, included on the disc is a better fit for the program than the last version available online.

    4 uninstall the game or software program and then reinstall it again.  Something could have happened to the files in the program work with d3d8.dll and a reinstall might do the trick.

    5. restore the file d3d8.dll since the latest DirectX software package.  If the troubleshooting steps above have not worked to resolve your error d3d8.dll, try to extract the d3d8.dll individually from the downloadable package of DirectX.

    I hope the information is useful.

    Kind regards

  • My E drive has stopped working and does not even appear as a device.

    I was copying an audio cd to a disc that has been in my E drive.  I took it out and it did not work.  I put a CD - R in the drive closed it and now it will not open and when I go to my computer the drive does not exist.  It only shows my drive D and F there.

    Hi ChristineMorgan,

    Method 1: Run the fixit available in the link below

    Hardware devices do not work or are not detected in Windows http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2: Let flow the fixit available in the article below and then check

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/982116

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows

  • Firefox starts in offline mode work and does not connect to internet

    Firefox disconnects randomly internet. Work off line option is checked then when somehow naked - Firefox still does not connect. A re-start the computer him more often, solved the problem. What is new and I did not any changes recently. Running Fox 3.6.3

    Try going to Tools - Addons - Extensions and disable your extensions one by one to see if one of them is at the origin of the problem.

  • laptops with battery problems and does not turn on

    I get Strait to the point and say that I have 2 laptops that are causing a bit of touble.the the first is hp dv6 4023tx it worked fine one moment connected to food I have remove the power cable and its fine I turn it off leave it for about an hour and it will not power on I had a look at the error codes different and found that the code I get is an error of System Board and I'm not sure what to do about it. the other laptop is a dv3 2002tu and battery decided to die on me and I'm not sure what to do with it either. I download the wizard of battery and it gives me an OK (4) im not sure what that 4 means but it might be useful the dv3 .ps is the computer laptop im using to send these messages and get only on when plugged into an external power source.

    Hello @DBG-spas .

    Welcome to the HP Forums!

    I understand your laptops have feeding problems and the battery.

    If there are system errors Council you will need service on the motherboard. You can contact HP telephone support for options of repair and maintenance at 1-800-474-6836 in North America. For all other regions click here.

    The question of DV3 is a little different. If the battery is not the laptop, but it works very well with the power connected, it could be the battery or on the motherboard connections that are the problem. The only way to be really sure if its in the computer or the battery is to try another battery. The bad news here is that, to try another battery, you have good enough to buy one, that may not solve the problem.

    You can find the battery searching these reference numbers (according to what battery you have):

    Part number of battery 9 cells, 83-Wh-530803-001
    Part number 6-cell, 55-Wh-530802-001 battery
    Part number 6-cell, 47-Wh-530801-001 battery

    It is finally to if you want to make the bet or not, but you can also contact you the HP support by phone for repair on this one as well.

    Sorry for the bad news, but we hope this helps.

  • Windows load with black screen and does not start after windows updates

    Original title: load windows normally screen will not continue

    I went to my computer tower and I chose to install updates when closing.  I went back later to re - turn on my computer and now it loads to the top of the black screen that gives you 5 options. safe mode, safe mode with networking safe mode command prompt, windows loads normally and finally to load windows from last known configuration that works.  Problem is that none of these options work.  they all return me to the same screen.  Help this laptop came preloaded with Win XP Media Center edition and I can't get back to work.  IM assuming I need a XP disk support center but I can't find them anywhere! HELP PLEASE SOMEONE!

    Hi Burton089,

    Your hypothesis is right. To resolve this problem, we need to repair your installation of Windows using the Windows XP disk. We recommend that you contact the manufacturer of the laptop to check if they have the Windows recovery disk.
    See perform a repair Installation

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The names of files and documents is displayed automatically with '. RRT' and does not open.

    I had been using windows 8.1 pro until last month when one day all my documents and files names appears with '. RRT' at the end of the tail. The day before, that I can remember, I had tried to free up the space of the drives c and d by removing unused and temporary files. I had also deleted some system files, where I could probably and unintentionally deleted some important system. Therefore, no office paper was reading and writing. I tried a few Microsoft office online supports, convenience stores, diag apps, but nothing has worked.

    I then uninstalled windows 8.1 and installed windows 7, tried some recovery methods and tools, in fact, it's always "RTT" at the tail. I have a pair of drive but that was created during the windows 8.1 platform and now it's windows 7.

    Now, I want a solution 2 at the same time

    (1) is it possible and how to return to my previous windows operating system 8.1 from the windows repair disc I have with me?

    (2) what is this format RRT, how she appeared? And how to recover or repair all my documents and files?

    Please advice...

    There was a similar post in this forum about a month ago. Its author has finally found his machine had been infected by ransom ware. All his files have been encrypted. If he paid the ransom his records might (?) get decrypted.

    If you can download one of these files to a cloud storage location or send it to me (pegasusDOTfnlATgmailDOTcom), then I might be able to tell you more. Don't forget to specify what type of file it should be (.docx, .pdf, etc.).

  • Download windows 7 OS from a flash drive, I have a new Tablet comes with windows 8 and does not have a CD/DVD player?

    I feel then very hard to adjust windows 8 to work properly I don't want.

    You will first need to go to the website of manufacturers for your model computer and first find out if there are native drivers in Windows 7. A large number of computers that are preloaded with Windows 8 have no native driver support for Windows 7 by the manufacturer. If there is no native driver, you will need to consider returning the machine and buying a machine preloaded with Windows 8 Pro with downgrade rights to Windows 7 Professional. Or look through the catalogue of manufacturers for systems already preloaded with Windows 7, usually the business sector will have these options.

  • CD rom drive does not work and does not appear.

    My cd rom drive not only disappeared from "my computer", it's also not read what I put in. When I find under device manager and open it it shows nothing in the drive. I ran a Microsoft Web site diagnostic test and he said: she could not solve the problem and has only offered no other information. My drive is NEC DVD + RW ND - 6650A

    Hello

    Please refer to the link below regarding CD/DVD players missing. :-)

    http://support.Microsoft.com/kb/982116

  • BlackBerry Z10 please help! m having a problem with the heat and does not

    my blackberry z10 stand up heat and my apps and setting are not open. When I click it, it redirect me to the 1st screen. even I can not open my setting too. so I can't do a securitywipe also. Help, please.

    Try a reboot first. Hold your power button for about 15 seconds, until you see BlackBerry on your screen. Don't release it before despite what may appear on your screen.

    If this solves the problem, you can reset your phone to factory specifications by using the link to BlackBerry. If I remember, once your phone is connected to the link of the button to press link Options is in the upper right and then Reload Software.

    Keep us updated on your progress.

  • WIFI adapter does not work and can not be detected

    Hi guys,.

    I use HP Pavilion Dv4 3106tx. I don't know what happened, but out of no where my wifi sort adapter stopped working. whenever I have activate my wifi button, bluetooth doesn't work and does not display the icon of wifi which usually shows at the bottom right of the taskbar. I also checked Device Manager > network adapters, the wifi card is not there. I also tried "Search the hardware changes", but still there is not Wifi adapter appears.

    Right now I'm just connect via ethernet for internet connection because my wifi does not work.

    Can you help me out here guys...

    Thank you!

    Hi @pooroontong

    Welcome to the Forums of HP Support!

    I understand that your wireless network is most obvious in your systray or in Device Manager. I'm happy to help you.

    The first thing to do is to take a look at this page which deals with the problem you describe. Try it and let me know if you need help most.

    Universal solution WLAN, Wireless and Wi - Fi errors

  • I look integrated in the block of the legend of slide show, a widget like "Accordion" for, with one click, or by the way with the mouse, open a new caption for each photo. I tried with 'Accordion' Muse, it does not work. I haven't tried to copy and paste,

    Issue.

    I look integrated in the block of the legend of slide show, a widget like "Accordion" for, with one click, or by the way with the mouse, open a new caption for each photo. I tried with 'Accordion' Muse, it does not work. I haven't tried to copy and paste, but no result. The widget disappear into the legend of block. disappear. Do you have a solution?

    Thank you

    Loïc

    Accordion Panel tabs should, with click and open the container.

    Please provide the url of the site where it does not, also if you can provide an example where we can see the exact action, then it would help us.

    Thank you

    Sanjit

Maybe you are looking for