Hey, im not sure if this is javascript, but i thought it would be (if anyone knows a better Cross Browser compatible way, let me know...)
Image if you will a blog entry, and at the end of the actual paragraph, you have pictures. Now the paragraph and <img> tags are all saved in the same field in the database, so when you loop through the query and print out the the content, the pictures load too. The pictures are always at the end of the paragraph. The problem I am having is that if the pictures have no newline break before them so they will load and make a big gap on the last line of the paragraph.... To illustrate, what i want is this
paragraph-paragraph-paragraph-
paragraph-paragraph-paragraph-
paragraph-
<img> <img> <img> <img> What i get is this
paragraph-paragraph-paragraph-
paragraph-paragraph-paragraph-
paragraph-<img><img><im g>
Because there is no new line at the end of the paragraph, the size of the photos causes this huge gap on the bottom line of the text.
I want to know how to put a break in between the last word of a paragraph and the first picture.
Let me know, thanks
Frank
1 1256 acoder 16,027
Recognized Expert Moderator MVP
Just use <br>. Look for the first image tag and add a line break before it
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Bob Bedford |
last post by:
I've been able to parse the XML files used to update my database.
Now, I receive image in XML files, like this:
<PICTURES COUNT="3" CDATA="1">
<PIC NR="1"><!]></PIC>
<PIC NR="2"><![CDATA[/9j/4AAQSk.............></PIC>
<PIC NR="3"><![CDATA[/9j/4AAQSk.............></PIC>
</PICTURES>
|
by: JakeC |
last post by:
Hey all,
I'm currently redesigning a website that a friend and I started about a year
ago. It is a daily surf report so when choosing the best script/language to
use for the new design, I found that a mixture of PHP and MySQL would be a
good idea. I have currently set up OmniHTTPd and installed MySQL and PHP
onto my homeserver. I want the site to be set up as follows:
1- I add the report, date and pictures (and amount of pictures...
|
by: Jpearl |
last post by:
I'm trying to create a catalog through Access that can be posted on-line. I
have set it all up, but in designing the "access page" I cannot get the OLE
objects (pictures of the products) to appear. It only allows me to insert
pictures from files, in which case the picture doesn't change with the
record. If I try to add the OLE object as a control in design view it gives
me an error message.... help!
|
by: Wadim Grasza |
last post by:
I want to store and display (on a form or a report) multiple pictures
per
record in an access database. The pictures are not stored within the
database. They are stored as files and the database contains the paths
to the
pictures.
The database consists of two tables:
TABLE DATA
ID Name LastName
|
by: Siv |
last post by:
Hi,
I have written an application which is used by sales staff when discussing
products with their customers over the phone. It is a database application
that holds detailed information about their products including pictures to
assist the sales staff describe features to the customer. The next step in
development of the app is to have a button when in a particular product
screen that the seller can press which sends the customer an...
| |
by: Doug van Vianen |
last post by:
Hi,
Is there some way in JavaScript to stop the downloading of pictures from a
web page?
Thank you.
Doug van Vianen
|
by: Jim Carlock |
last post by:
I have over a hundred pictures I would like to present.
Is it practical to create and parse an array of pictures,
picture paths, et al using server-side scripting to
accomplish this?
I created an array already, and whereby, the HTML and Javascript
currently used amount to about 14KB for each of four different
pages, the PHP page I started working on is already over 35KB in
size (most of it is server side processing creating the array...
|
by: bseakgano |
last post by:
Am using VB.Net though it is my first time to use it . I just want to insert , delete , seach, update pictures into database, I want to using vb.net and forms(ASP) to insert pictures into SQL. Please help with 2 to 3 lines. I mean how SQL should look, Vb.net should (connect) look, forms should (connect) look. Believe that three line of codes from each can help a lot
|
by: Alexnb |
last post by:
Hello
I am sure most of you are familiar with py2exe. I am having a bit of a
problem. See the program has a few pictures involved and the .ico it uses
for the windows. However, the pictures are stored in the same directory as
the source, something like: C:\Docs and settings\me\My docs\python\program.
When I run the program for the interpreter, just as a .py, everything works
just as it should. However, when I compile the main source as...
|
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: 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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
| |