473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

css text position problem

Hi,
at the bottom of my page, I have two different sentances in the same <div>.
I've got the left hand sentance not positioned and it sits on the left hand
side of the screen. The second sentance is placed in a <div> floated right.
the problem is that the second sentance drops below the level of the first
sentance and I want them in-line. Please help!

The URL is : www.paulwatt.info
CSS www.paulwatt.info/css/paullayout.css

TIA

Paul
Mar 31 '06 #1
7 2169
<div class="footer">
<div class="copyright">
&copy;paulwatt designs 2005 tel:07766 335848
</div>
<div class="valid">
valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a>
</div>
</div>

Mar 31 '06 #2

"Derek Erb" <de*******@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
<div class="footer">
<div class="copyright">
&copy;paulwatt designs 2005 tel:07766 335848
</div>
<div class="valid">
valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a>
</div>
</div>


yep, thats my code
Mar 31 '06 #3
Paul Watt wrote:
Hi,
at the bottom of my page, I have two different sentances in the same
<div>. I've got the left hand sentance not positioned and it sits on
the left hand side of the screen. The second sentance is placed in a
<div> floated right. ^^^^^
<span>
the problem is that the second sentance drops
below the level of the first sentance and I want them in-line. Please
help!

The URL is : www.paulwatt.info CSS
www.paulwatt.info/css/paullayout.css


Move the span to before the &copy; text.

<div class="footer">
<span class="valid">valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a></span>
&copy; paulwatt designs 2005 tel:07766 335848
</div>

You should add a space between &copy; and your name, and probably
between the tel: and the number, too.

--
-bts
-Warning: I brake for lawn deer
Mar 31 '06 #4
Beauregard T. Shagnasty wrote:
Paul Watt wrote:
Hi,
at the bottom of my page, I have two different sentances in the same
<div>. I've got the left hand sentance not positioned and it sits on
the left hand side of the screen. The second sentance is placed in a
<div> floated right.

^^^^^
<span>
the problem is that the second sentance drops
below the level of the first sentance and I want them in-line. Please
help!

The URL is : www.paulwatt.info CSS
www.paulwatt.info/css/paullayout.css


Move the span to before the &copy; text.

<div class="footer">
<span class="valid">valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a></span>
&copy; paulwatt designs 2005 tel:07766 335848
</div>

You should add a space between &copy; and your name, and probably
between the tel: and the number, too.


Or even simpler and would keep the natural order of the text for text
readers....

<div class="footer">
<div>&copy; paulwatt designs 2005 tel:07766 335848</div>
valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and
<a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a>
</div>

With CSS:

..footer { text-align: right; border-top: 1px dashed #00f;}
..footer DIV { float: left; }
Also your code:

<p><strong>P</strong>aul Watt Designs...

Could be simply:

<p>Paul Watt Designs
with CSS:
P:first-letter { font-weight: 700; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 31 '06 #5
Paul,

That's not your code.

This is your code (copied and pasted from your source):

<div class="footer">&copy;paulwatt designs 2005 tel:07766 335848
<span class="valid">valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a></span> </div>
</div>

Look closely. You do not have a div after footer and you used spans
instead of divs.

I modified your code and tested it before posting it. It's obviously
not the same.

Mar 31 '06 #6

"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:St*********************@bgtnsc05-news.ops.worldnet.att.net...
Paul Watt wrote:
Hi,
at the bottom of my page, I have two different sentances in the same
<div>. I've got the left hand sentance not positioned and it sits on
the left hand side of the screen. The second sentance is placed in a
<div> floated right.

^^^^^
<span>
the problem is that the second sentance drops
below the level of the first sentance and I want them in-line. Please
help!

The URL is : www.paulwatt.info CSS
www.paulwatt.info/css/paullayout.css


Move the span to before the &copy; text.

<div class="footer">
<span class="valid">valid <a
href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paulwatt.info%2F"
class="validlink">XHTML</a> and <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.paulwatt.info/css/paullayout.css"
class="validlink">Valid CSS</a></span>
&copy; paulwatt designs 2005 tel:07766 335848
</div>

You should add a space between &copy; and your name, and probably
between the tel: and the number, too.

--
-bts
-Warning: I brake for lawn deer


Cheers all done
Mar 31 '06 #7
Paul Watt wrote:
Cheers all done


Yup. I see the space - tel :07766 335848 - is before the colon rather
than after it.

On your contact page, would you increase the size of the message
textarea to maybe cols=50 and rows=8 ? Visitors would appreciate a
larger box that isn't going to wordwrap so quickly. The Subject field
could be longer as well.

How about a thumbnail of the main page of each site in your portfolio?

--
-bts
-Warning: I brake for lawn deer
Mar 31 '06 #8

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

Similar topics

2
by: grayFalcon | last post by:
Hello! I've got a small problem here. I'm trying to write some code that would generate a drop-down menue for me, where I'd just need to enter the menu- and submenu items into an array. The...
4
by: JE | last post by:
Hi! I am snooping around all sorts of websites and faqs, in search of a way to pick up any selected (mouse-highlighted) text in a HTML page, and store it in a JavaScript variable. I have...
4
by: anatushi | last post by:
Hi, im looking for help on how to add a text fader to my website, usually i'm working with css but in this case i need to add java script to make it work, that wasn't the problem but somehow it...
1
by: Mickey | last post by:
Hi, I have a script which works in both IE but is sluggish in Firefox. The script is a simple text scroller. It works perfectly in IE however in Firefox, the text scroll slower and eventually...
4
by: sweep | last post by:
Hi there, I have a problem with some CSS I'm writing and I was looking for a little help. I have a nav bar at the top and left side of my page in CSS which work fine. The remaining space has a...
1
by: Line 1 | last post by:
Hello!! Can you help me with my CSS problems? I have created a page that overlays text on an image. the problem is that it is leaving all this space at the bottom of background image that I also...
10
by: Kenneth Brody | last post by:
I recently ran into an "issue" related to text files and ftell/fseek, and I'd like to know if it's a bug, or simply an annoying, but still conforming, implementation. The platform is Windows,...
2
by: george.leithead | last post by:
Hi all, I have a very strange problem! In following Web page (which is generated from a CMS System), the navigation to the left 'dissapears' when you roll the mouse over the links? It does not...
8
by: Edward | last post by:
I used to do this all the time in HTML-table layouting. How do I do this in CSS? -------------------------------------------------- <table width="400px"> <tr> <td bgcolor="beige">one line of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
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...

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.