Problem with css
am 12.10.2007 14:06:07 von Shelly
I want to have two links on a single line. The css I have inherited (I am a
php person and not much on css) makes them come out on individual lines with
a long white bar under and in white font.
Whether or not I specify style="main" the problem occurs. If I delete the
css fle include, then it works correctly. Can anyone help this novice?
Sheldon
Here is my test code:
"http://www.w3.org/TR/html4/loose.dtd">
Untitled Document
Here is the css file:
body {
background:#11418b;
margin:0 auto;
padding:0;
font-family:"Trebucht MS", Verdana, Arial, Helvetica, sans-serif;
}
#wrapper {
position:absolute;
border:0;
margin:0 auto;
width:900px;
height:700px;
text-align:left;
background-color:#ab0801;
left: 12px;
top: 96px;
z-index: 5;
}
#header {
background-color: #ab0801;
background-image: url(../i/header_bg.jpg);
color: #fff;
position:absolute;
left:10px;
width: 900px;
}
#menu {
position:absolute;
left:5px;
width:160px;
height:auto;
z-index:1;
padding: 5px;
top: 5px;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
}
#content {
position:absolute;
left:184px;
top:5px;
width:700px;
height:680px;
z-index:2;
background-color: #CCCCCC;
padding: 5px;
}
a:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 14px;
font weight: bold;
border-bottom: thin #FFFFFF solid;
display: block;
padding-bottom: 3px;
text-decoration: none;
}
a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #CCCCCC;
font-size: 14px;
font weight: bold;
border-bottom: thin #FFFFFF solid;
display: block;
padding-bottom: 3px;
text-decoration: none;
}
a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 14px;
font weight: bold;
border-bottom: thin #FFFFFF solid;
display: block;
padding-bottom: 3px;
text-decoration: none;
}
a.main:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #0000CC;
font-size: 16px;
font weight: bold;
text-decoration: none;
border-bottom: none;
width: 130px;
display: block;
padding-bottom: 3px;
}
a.main:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 16px;
font weight: bold;
width: 130px;
text-decoration: none;
border-bottom: none;
display: block;
padding-bottom: 3px;
}
a.main:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #0000CC;
font-size: 16px;
font weight: bold;
width: 130px;
text-decoration: none;
border-bottom: none;
display: block;
padding-bottom: 3px;
}
Re: Problem with css
am 12.10.2007 14:21:04 von Rob_W
Shelly schreef:
> I want to have two links on a single line. The css I have inherited (I am a
> php person and not much on css) makes them come out on individual lines with
> a long white bar under and in white font.
> Whether or not I specify style="main" the problem occurs. If I delete the
> css fle include, then it works correctly. Can anyone help this novice?
>
> Sheldon
>
[snipped code]
Can you provide a link to the page?
We're a little reluctant to copy/paste the code you gave.
--
Rob Waaijenberg
Re: Problem with css
am 12.10.2007 15:42:20 von removeme
Shelly wrote:
> I want to have two links on a single line. The css I have inherited (I am a
> php person and not much on css) makes them come out on individual lines with
> a long white bar under and in white font.
> Whether or not I specify style="main" the problem occurs. If I delete the
> css fle include, then it works correctly. Can anyone help this novice?
>
> Sheldon
>
> Here is my test code:
It should be class="main", not style="main".
The links appear on different lines because of the 'display: block;'
declarations in the CSS. Try changing your stylesheet so the a rules
look like this:
a:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 14px;
font weight: bold;
text-decoration: none;
}
a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #CCCCCC;
font-size: 14px;
font weight: bold;
text-decoration: none;
}
a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 14px;
font weight: bold;
text-decoration: none;
}
a.main:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #0000CC;
font-size: 16px;
font weight: bold;
text-decoration: none;
}
a.main:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 16px;
font weight: bold;
text-decoration: none;
}
a.main:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #0000CC;
font-size: 16px;
font weight: bold;
text-decoration: none;
}
Re: Problem with css
am 12.10.2007 16:04:39 von Shelly
Thank you very much. That did the trick!
Sheldon
"John L." wrote in message
news:5n9buaFh32ldU1@mid.individual.net...
> Shelly wrote:
>> I want to have two links on a single line. The css I have inherited (I
>> am a php person and not much on css) makes them come out on individual
>> lines with a long white bar under and in white font.
>> Whether or not I specify style="main" the problem occurs. If I delete
>> the css fle include, then it works correctly. Can anyone help this
>> novice?
>>
>> Sheldon
>>
>> Here is my test code:
>
>
>
> It should be class="main", not style="main".
>
>
>
> The links appear on different lines because of the 'display: block;'
> declarations in the CSS. Try changing your stylesheet so the a rules look
> like this:
>
> a:link {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> color: #FFFFFF;
> font-size: 14px;
> font weight: bold;
> text-decoration: none;
> }
>
> a:hover {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> color: #CCCCCC;
> font-size: 14px;
> font weight: bold;
> text-decoration: none;
> }
>
> a:visited {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> color: #FFFFFF;
> font-size: 14px;
> font weight: bold;
> text-decoration: none;
> }
> a.main:link {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> color: #0000CC;
> font-size: 16px;
> font weight: bold;
> text-decoration: none;
> }
>
> a.main:hover {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> color: #000000;
> font-size: 16px;
> font weight: bold;
> text-decoration: none;
> }
>
> a.main:visited {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> color: #0000CC;
> font-size: 16px;
> font weight: bold;
> text-decoration: none;
> }
Re: Problem with css
am 12.10.2007 16:18:58 von lws4art
Shelly wrote:
> Thank you very much. That did the trick!
But Shelly forget the CSS, if you are a PHP coder what the hell are you
doing with "mailto" in links?
Tisk-tisk! And what happens to the webmail only folks? Should be at least:
main_2
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: Problem with css
am 12.10.2007 16:32:33 von Shelly
"Jonathan N. Little" wrote in message
news:8e65d$470f8251$40cba7c7$31027@NAXS.COM...
> Shelly wrote:
>> Thank you very much. That did the trick!
>
> But Shelly forget the CSS, if you are a PHP coder what the hell are you
> doing with "mailto" in links?
If I want to sent a packaged email from the web, or even have the
composition of the text, etc. done in the web app, then I do just as you say
(and have done so before many times). However, this is for a small company
for internal use, and part of the app is to send email to clients not using
this app. I want the app to bring up the sender's own email client and have
the address be in there automatically. They will then write whatever they
want as text for the email. "mailto" does this perfectly, as the users all
have email clients.
Did I misinterpret what you are saying?
Sheldon
>
>
>
>
>
>
>
>
> Tisk-tisk! And what happens to the webmail only folks? Should be at least:
>
>
>
>
> main_2
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIO
> http://www.LittleWorksStudio.com
Re: Problem with css
am 12.10.2007 17:14:43 von lws4art
Shelly wrote:
> "Jonathan N. Little" wrote in message
> news:8e65d$470f8251$40cba7c7$31027@NAXS.COM...
>> Shelly wrote:
>>> Thank you very much. That did the trick!
>> But Shelly forget the CSS, if you are a PHP coder what the hell are you
>> doing with "mailto" in links?
>
> If I want to sent a packaged email from the web, or even have the
> composition of the text, etc. done in the web app, then I do just as you say
> (and have done so before many times). However, this is for a small company
> for internal use, and part of the app is to send email to clients not using
> this app. I want the app to bring up the sender's own email client and have
> the address be in there automatically. They will then write whatever they
> want as text for the email. "mailto" does this perfectly, as the users all
> have email clients.
>
> Did I misinterpret what you are saying?
>
Not sure if I understand what you are saying. The persons clicking these
links *only* employees of this company? Or people *outside* of this
company? I.e., it this private on an intranet, or public on the Internet?
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: Problem with css
am 12.10.2007 17:39:09 von Shelly
"Jonathan N. Little" wrote in message
news:2d88a$470f8f64$40cba7c7$21463@NAXS.COM...
> Shelly wrote:
>> "Jonathan N. Little" wrote in message
>> news:8e65d$470f8251$40cba7c7$31027@NAXS.COM...
>>> Shelly wrote:
>>>> Thank you very much. That did the trick!
>>> But Shelly forget the CSS, if you are a PHP coder what the hell are you
>>> doing with "mailto" in links?
>>
>> If I want to sent a packaged email from the web, or even have the
>> composition of the text, etc. done in the web app, then I do just as you
>> say (and have done so before many times). However, this is for a small
>> company for internal use, and part of the app is to send email to clients
>> not using this app. I want the app to bring up the sender's own email
>> client and have the address be in there automatically. They will then
>> write whatever they want as text for the email. "mailto" does this
>> perfectly, as the users all have email clients.
>>
>> Did I misinterpret what you are saying?
>>
>
> Not sure if I understand what you are saying. The persons clicking these
> links *only* employees of this company? Or people *outside* of this
> company? I.e., it this private on an intranet, or public on the Internet?
The only people using this will be employees of the company. It is not for
public consumption. It will actually be on the internet, so that they can
work from home, etc., but it will be password protected so that only company
employees can log in. Even mobile, they will have email clients on their
laptops or home computers. I don't have to worry about the general public
needing to send an email this way.
Shelly
Re: Problem with css
am 16.10.2007 17:29:20 von unknown
Post removed (X-No-Archive: yes)
Re: Problem with css
am 16.10.2007 18:23:16 von Bergamot
Alfred wrote:
> On Fri, 12 Oct 2007 14:21:04 +0200, Rob Waaijenberg
> wrote:
>>
>>Can you provide a link to the page?
>>
>>We're a little reluctant to copy/paste the code you gave.
>
> Why ? Can it be malignant ?
You must be new around here.
"Malignant" isn't the issue, and "reluctant" was probably being nice.
It's a PITA for us to copy/paste code and make our own web page to help
with some "problem". If you expect assistance, make it as easy as
possible for us to help you. Posting code is not the way. Posting a URL
is. It's as simple as that.
Whether you agree or not is irrelevant - it's the accepted practice of
this group and most others related to web authoring. BTW, not having a
publicly available server is no excuse. There are plenty of places to
post a test page for free if you need to.
BTW, you should have considered lurking here for a while or reading the
group archives before posting. Then you'd have found this answer
yourself. Now that you've spoken up, we see you have done neither of
those things, which makes you sound either clueless or troll-like,
neither of which is in your favor. This behavior is characteristic of
google gropers. If you want any respect around here, don't be like them.
--
Berg
Re: Problem with css
am 16.10.2007 18:49:18 von Rob_W
Alfred schreef:
> On Fri, 12 Oct 2007 14:21:04 +0200, Rob Waaijenberg
> wrote:
>
>> Shelly schreef:
>>> I want to have two links on a single line. The css I have inherited (I am a
>>> php person and not much on css) makes them come out on individual lines with
>>> a long white bar under and in white font.
>>> Whether or not I specify style="main" the problem occurs. If I delete the
>>> css fle include, then it works correctly. Can anyone help this novice?
>>>
>>> Sheldon
>>>
>> [snipped code]
>>
>> Can you provide a link to the page?
>>
>> We're a little reluctant to copy/paste the code you gave.
>
> Why ? Can it be malignant ?
Who knows???
If you provide a link to a real webpage we can assess the code 'in the
wild' so to speak. We get to see all the parts that matter, and no
chance that anything gets accidently deleted or mistyped.
I realize that you would not let that happen,
but then again...
--
Rob
Re: Problem with css
am 16.10.2007 19:18:14 von lws4art
Alfred wrote:
> On Fri, 12 Oct 2007 14:21:04 +0200, Rob Waaijenberg
> wrote:
>> We're a little reluctant to copy/paste the code you gave.
>
> Why ? Can it be malignant ?
No because it would be rather pointless because he does not have related
resources:
@import url("css/styles.css");
and
background-image: url(../i/header_bg.jpg);
on his local system that may have something to do with the problem. That
is why you see posted here so often, "Don't post code, post a URL"
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com