473,808 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Who can check my code? Minor problem on my CSS page. . .

S
Hello

My title bars are not lining up. Simple problem for an expert, but I'm not
one yet. ;)

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css

Any ideas?

Thanks,

------------S

Oct 21 '05 #1
15 1725
S schreef:
Hello

My title bars are not lining up. Simple problem for an expert, but I'm not
one yet. ;)

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css

Any ideas?

Thanks,

------------S

Okeh,
Look at:
#controlSection {
~snip~
margin-top: -14px;
}

I think that that makes IE deceide to move the box 14 pixels to the top of its location. So concentrate on
that part.

But remember that you can use an id only once on a page, zo you should shange #controlSection to
..controlSectio n and chage <div id="controlSect ion"> to <div class="controlS ection">
For the rest it's pretty okeh, one more hint though.
You can shorten code like:
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
to:
body {
margin: 0;
}
No need for units if it's zero
margin: 2px 4px 6px 8px cab be read like this: margin: top right bottom left (clockwise!)
and code like:
border-left-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-color: #8a8a8a;
border-right-color: #8a8a8a;
border-bottom-color: #8a8a8a;
to:
border: 1px solid #8a8a8a;
border-top: none;
That will keep your code comacte and comprehensible
Good luck

--
Niek
Oct 21 '05 #2
S
Thanks for previous input.

I'm still encountering problems with my code in that my items are
rendering in browsers with gaps between the content and the headers. Also,
my links are being pushed to the right in stead of being left justified with
a 4 pixel margin.

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css

I'm pretty confused here. Any help is appreciated.

Thanks,

-----------------Steve

Oct 22 '05 #3
S wrote:
Thanks for previous input.

I'm still encountering problems with my code in that my items are
rendering in browsers with gaps between the content and the headers. Also,
my links are being pushed to the right in stead of being left justified with
a 4 pixel margin.

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css

I'm pretty confused here. Any help is appreciated.

Thanks,

-----------------Steve

Hey,

You need to take away the comment marks, yjat should sort you out, so
like ............

..controlSectio n {
width:128px;
background-color: #ebebeb;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
text-indent: 4px;
border: 1px solid #8a8a8a;
border-top: none;
/* margin-top: -14px;*/
}
and..........

..controlSectio n ul li a {
/* margin-left: -40px;*/
}

Take out the /* and the */'s and you should be good to go :-)

--
chin chin
Sinclair
Oct 22 '05 #4
S wrote:

I'm still encountering problems with my code in that my items are
rendering in browsers with gaps between the content and the headers. Also,
my links are being pushed to the right in stead of being left justified with
a 4 pixel margin.

http://www.dorseygraphics.com/toolbar_1a/


Lists have default margins and/or padding at top, bottom and left.
Set margin:0 and padding:0 on both the ul and li elements to start, then
adjust to taste.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Oct 22 '05 #5
S
Looks better,

But there are still gaps between each title bar and the links below it.

Thanks for everything, so far, by the way. . .

-----------Steve

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css
On 10/22/05 2:45 PM, in article 3r************@ individual.net, "kchayka"
<us****@c-net.us> wrote:
S wrote:

I'm still encountering problems with my code in that my items are
rendering in browsers with gaps between the content and the headers. Also,
my links are being pushed to the right in stead of being left justified with
a 4 pixel margin.

http://www.dorseygraphics.com/toolbar_1a/


Lists have default margins and/or padding at top, bottom and left.
Set margin:0 and padding:0 on both the ul and li elements to start, then
adjust to taste.


Oct 22 '05 #6
S wrote:
Looks better,

But there are still gaps between each title bar and the links below it.

Thanks for everything, so far, by the way. . .


Hehehe now it's changed a little - you still need to lose the comments
here - so change this.....

..controlSectio n {
width:128px;
background-color: #ebebeb;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
text-indent: 4px;
border: 1px solid #8a8a8a;
border-top: none;
/* margin-top: -4px;*/
}

for this........

..controlSectio n {
width:128px;
background-color: #ebebeb;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
text-indent: 4px;
border: 1px solid #8a8a8a;
border-top: none;
margin-top: -4px;
}
HTH
--
chin chin
Sinclair
Oct 23 '05 #7
S wrote:
Looks better,

But there are still gaps between each title bar and the links below it.

Thanks for everything, so far, by the way. . .

-----------Steve

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css


Perhaps declare display:block on the images to remove space for descenders.

Louise
Oct 23 '05 #8
S
Makes sense, but I was told a while back that I should not have to use
negative numbers in margins and padding. That's why those lines were
commented out - they worked as a fix, but it didn't seem like the "right"
way to code the page.

I am currently using the negative margin, and it seems to be working, but
now I have a different problem.

In MSIE 6 Windows, the links are underlined, even though I have clearly used
a "text-decoration: none;" tag in all of the a links. The links look great
in other browsers/platforms, but MSIE 6 Win is screwing up.

Is this a common problem?

Thanks again,

-----------------S

http://www.dorseygraphics.com/toolbar_1a/

http://www.dorseygraphics.com/toolbar_1a/css/styles.css


On 10/22/05 5:55 PM, in article j9************* *******@pipex.n et, "djinn"
<sc*****@dsl.pi pexYerKitAff.co m> wrote:
S wrote:
Looks better,

But there are still gaps between each title bar and the links below it.

Thanks for everything, so far, by the way. . .


Hehehe now it's changed a little - you still need to lose the comments
here - so change this.....

.controlSection {

width:128px;
background-color: #ebebeb;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
text-indent: 4px;
border: 1px solid #8a8a8a;
border-top: none;
/* margin-top: -4px;*/
}

for this........

.controlSection {

width:128px;
background-color: #ebebeb;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
text-indent: 4px;
border: 1px solid #8a8a8a;
border-top: none;
margin-top: -4px;
}
HTH


Oct 23 '05 #9
boclair wrote:
S wrote:

But there are still gaps between each title bar and the links below it.

http://www.dorseygraphics.com/toolbar_1a/


Perhaps declare display:block on the images to remove space for descenders.


Images are aligned at baseline by default, so another method is
img {vertical-align:bottom}

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Oct 23 '05 #10

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

Similar topics

32
33077
by: Nuno Paquete | last post by:
Hi group. I'm using this code to see if is there any parameter for variable "menu": if($_GET == "downloads") .... But this code log errors if there is no parameter passed (this heappens at the first time the page is loaded). I tryed this code:
53
5758
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
2
1967
by: \ | last post by:
Hi...I found your group on the search engine...First you have to know that I'm on a webtv unit.....I am really desperate.. I'm not much on tech terms as most of my pages are found and reworked codes to do what I need....my problem is I am moving my pages from an ad free account to one that has ads as the add free account T/L2 is closing down this year and I have to move my codes to 250free account til I can afford an upgade ANWAY.....I...
5
24642
by: Krechting | last post by:
Hi ALl, I have a code that checks if the documents in a hyperlink field are still where they should be. I use fileexist(). First I want to filter out all the hyperlink fields that are empty. I open a recordset and browse through all the fields to check for the word file. I cannot filter out the empty fields. I have tried: If Len(.Fields("Link") <> 0 then and: If Not IsNull(.Fields("Link")) then
0
3003
by: Sebastian Meier | last post by:
Hi everyone, i have the following problem. I tried to import the file ICSharpCode.SharpZipLib.dll into my VS Project. The Result was the following. Warning: Dependence 'ICSharpCode.SharpZipLib, Version=0.5.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' in project 'test' there it cannot be copied the reference 'ICSharpCode.SharpZipLib, Version=0.80.0.1373, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' into the remark...
171
7826
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles) like it because you can split the code from the design. That is logical. But if you are the only one working on the code, it seem a little overkill. I use Dreamweaver to do my design and find it a bit of a hassle to have multiple files open...
4
2484
by: Michael C# | last post by:
Given a DateTime variable, what's the best way to check "minor" status (i.e., less than age 18 years) based on today's date? I came up with this: Dim minor As Boolean = true 'dtDOB is a DateTime variable set to Date of Birth If (DateTime.Now.Subtract(dteDOB.Value.AddYears(18)).TotalDays >= 0) Then minor = false End If This appears to work, but seems a little obfuscated. I was just wondering
7
1742
by: phpretard | last post by:
I have columns named -email- rookie- -coach- -minor- R1. email has an address rookie has a value of the word "yes" R2. email has an address coach is empty R3. email has an address minor has a value of the word "yes" OBJECTIVE: When I submit the form with all three boxes check it should only send an email to rookie and minor because their values are "yes"
55
3337
by: lovecreatesbea... | last post by:
Do you check all error conditions for all library calls in you code? Is it necessary to check all errors? Is it convenient to check all errors (or how to make code clean and readable with mass of non business logic related code block)? The following code from net-snmp library calls atoi five times but checks none. Do we code a wrapper my_atoi_with_error_check() around atoi and call this new one everywhere else? Is it a good practice...
0
9721
marktang
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...
0
9600
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
10374
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
10374
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
9196
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
7651
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
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.