I'm trying to get a 1px border around the content section of this page: http://www.clearpointsystems.com
As you will see, I have a header/nav bar (looks correct), but the border around
the content is not centered and does not resize properly as the browser window
is resized.
The goal is a 1px border around the content (div id="page") with about 30px (or
2%) margin all around and the border/content should resize as the browser
window is resized.
What I have now is something of a hack:
#page {
position:absolu te;
top:80px;
width:80%;
height:50%;
font-family:Arial, Helvetica, sans-serif;
border: 1px solid #333333;
text-align:left;
margin-top:0 auto 0 auto;
padding:30px 30px 30px 30px;
}
How do I get a centered div with an evenly-spaced 1px border all around?
Thanks in advance.
Jun 7 '06
12 2776
>> This was my first attempt at using a table navbar. I like the idea because there are no images - keeps page size down. Funny thing is that I see 5 calls for _s1.gif_ in your table.
Yes, but at 0.07 KB :)
Speaking of that gif, any idea how I can get that bevel on the first (extreme
left) and last (extreme right) "tab" in the nav table? I've created the
appropriate gifs, but I don't know how to insert them in the table without
screwing up the cells.
Nothing actually, but don't use it if you don't have to and you don't have to in most instances. You have to understand that an absolutely positioned element is out of the normal flow.
10-4. That makes sense.
> body { font-size: 100%; } /* everyone's default size */ h1 { font-size: 140%; } /* <-- or similar for headings */ h2 { font-size: 125%; } h3 { font-size: 115%; }
I'll give it a shot. Thanks.
> Speaking of that gif, any idea how I can get that bevel on the first (extreme left) and last (extreme right) "tab" in the nav table? I've created the appropriate gifs, but I don't know how to insert them in the table without screwing up the cells.
figured it out - set bgcolor individually in the page (rather then the
stylesheet) and make another column for the leading/trailing images This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: VRandy |
last post by:
Example: http://pages.prodigy.net/randyv/centerprb.htm
The desired effect is a fixed width left margin with a fixed width div
centered in the right side. If the browser is resized to become very
narrow (less than 640px in this example), the right side centered div
should stop at the margin and horizontal scroll bar appear as the
window gets extremely narrow.
IE6 and Opera 4.11 display all the examples the same way.
The top row is a...
|
by: Haines Brown |
last post by:
I want a centered body, 680px wide, having a red bottom margin. The
following works well in galeon, but not in IE5, where the bottom
margin steals the full width of the viewpoint. That is, the red line
stretches from one side of the screen to the other and is not 680
pixels long. Why isn't the bottom margin 680 pixels?
body {
...
width: 680px;
margin-top: 1em;
|
by: David Winter |
last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it.
I want a centered DIV with a fixed width between two other DIVs that
should fill the rest of the window/viewport (= 100%). How do I achieve
this? I tried width:auto for the buffer DIVs, but it didn't work.
This should at least work in IE 5.5 and Opera. A totally
standards-compliant solution would be appreciated, of course ... :/
This is waht I have:
|
by: Ernst |
last post by:
I have a script for a menu. However, this menu uses absolute coordinates.
This menu had to be placed on a website. This website is position
(centered) using a table. How can I determine/calculate where to fix my
menuregardless the browser, slidebar width, tool etc.
Thanks
Ernst
|
by: TomB |
last post by:
Hello,
First of all, I'm just starting to use CSS so I am by no means
experienced in this matter.
What I want is a "box" div element that always is centered on the page.
Now I just use the center tag around my boxes, but I'm pretty sure there
must be a way to include the center positioning into the style code.
Anyone?
Also I had some people complaining about the colours of my site. I'm
using red (#6B0000) links on a black background,...
| |
by: Chris Beall |
last post by:
Objective: Using an HTML list, create a horizontal nav menu with these
characteristics:
- All menu items have the same width at all times.
- When the window width is reduced, the menu items stack, rather than
creating a horizontal scroll bar.
- The menu cluster is always centered on the window.
See
http://pages.prodigy.net/chris_beall/Demo/centered%20horizontal%20list.html
|
by: Austin Powers |
last post by:
I want to (on one line) show something like the following
-------------------------------------------------------
left centered right
-------------------------------------------------------
If I use <hrto draw the lines, then there is too much space between the
line and the text
If I use a table, then how do I get the right-justified string to be at the
|
by: TheLongshot |
last post by:
I just recently converted a few pages of my application to using master
pages. Problem is, in all of my content pages, the contents are
centered. I can't figure out why. The markup in the content page
seems to ignore any attempts to manually align right. So what's the
deal?
|
by: yoderpd |
last post by:
Hello. I'm not a CSS genius, but I'm learning by doing. I am creating a website where all the content is within a 650px box that is centered. Within that box, there are 2 columns. The left column will contain the bulk of the content and the right column will act as a sidebar type of thing. Everything looks perfect in Firefox, but whenever I test the page in IE the right column doesn't appear but everything else looks fine.
Here is the CSS...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |