Solved

I have problem ( simple one )

Posted on 2013-06-13
13
248 Views
Last Modified: 2013-06-18
The problem is the next article and the previews one look like that , Problem is

i want it to look like this ture
source code is  :
 ----------------------------------------------------------------------

<?php $ht_prev_next = get_option('ht_prev_next'); if ($ht_prev_next == "true") { ?>

<div class="prev-next-wrapper">

<div class="prev-post">

<?php previous_post_link('&larr; '.__('Articles précédent', 'mvp-text').' %link', '%title', TRUE); ?>

</div><!--prev-post-->

<div class="next-post">

<?php next_post_link(''.__('Article suivant', 'mvp-text').' &rarr; %link', '%title', TRUE); ?>

</div>

</div>

<?php } ?> 

Open in new window

0
Comment
Question by:PHPHZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +2
13 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39243805
what is next_post_link code?
0
 

Author Comment

by:PHPHZ
ID: 39243928
<?php $ht_prev_next = get_option('ht_prev_next'); if ($ht_prev_next == "true") { ?>

<div class="prev-next-wrapper">

<div class="prev-post">

<?php previous_post_link('&larr; '.__('Articles précédent', 'mvp-text').' %link', '%title', TRUE); ?>

</div><!--prev-post-->

<div class="next-post">

<?php next_post_link(''.__('Article suivant', 'mvp-text').' &rarr; %link', '%title', TRUE); ?>

</div>

</div>

<?php } ?>

Open in new window

0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39243930
<div class="next-post" style="text-align: right">

<?php next_post_link(''.__('Article suivant', 'mvp-text').' &rarr; %link', '%title', TRUE); ?>

</div>

Open in new window

OR add this to your style sheet
.next-post {
  text-align: right;
}

Open in new window

0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:PHPHZ
ID: 39243946
Still the same :S
0
 

Author Comment

by:PHPHZ
ID: 39243963
When i put long title everything fine . but if i put short title i'll got the problem above !

css
0
 

Author Comment

by:PHPHZ
ID: 39244172
Helppp
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39244300
Is this in some kind of a CMS or framework?

Best way to get help with this problem is to give us enough test data that we can replicate the problem.
0
 

Author Comment

by:PHPHZ
ID: 39244319
it's Wordpress , i think the problem coming from CSS ,
Because when the title bigger everything okey
when the title is less than 10 letters i've got the problem up!
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39244411
Post your link or html code and css for that portion
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39244423
Maybe you can pad the title with &nbsp; characters.  It's a bit of a hack to do something like this, but if it works, you've got a quick answer.
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39244886
Post a link - it is not feasible to solve this with screen shots.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39258180
Thanks for the points.  Going forward, consider spending a little time learning CSS.  I found that my understanding of CSS went way up when I began studying jQuery.  Just a thought, ~Ray
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39258546
Yup padding with spaces is not the right solution here. Proper CSS styling is the way to go - but working with screenshots - unfortunately you are not going to get much in the way of guidance.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question